#define STRCASESTR StrStrI
/* #define STRTOULL _strtoui64 */
#define STRTOUL strtoul
+ #define STRTOKR strtok_l
+
#define CLOSESOCKET closesocket
#define DEFAULT_TCP_WINDOWSIZE 2048
#define DEFAULT_TCP_WINDOWSIZENR 2 /*=2048*/
#define STRCASECMP strcasecmp
#define STRCASESTR strcasestr
#define STRTOUL strtoul
+ #define STRTOKR strtok_r
#define CLOSESOCKET close
// add here defines for plattform specific objects
vguLine(current,0.f,0.f,1.f,0.f);
// HorzLine
- std_paths[HorzLine]=current;
+ std_paths[PIHorzLine]=current;
current=vgCreatePath(VG_PATH_FORMAT_STANDARD,
VG_PATH_DATATYPE_F,1.f,0.f,
0,0,VG_PATH_CAPABILITY_ALL);
vguLine(current,0.f,0.f,0.f,1.f);
// VertLine
- std_paths[VertLine]=current;
+ std_paths[PIVertLine]=current;
current=vgCreatePath(VG_PATH_FORMAT_STANDARD,
VG_PATH_DATATYPE_F,1.f,0.f,
//vguRect(current,0.f,0.f,1.f,1.f);
vguRect(current,0.f,0.f,1.f,1.f);
// Rectabgle
- std_paths[Rectangle]=current;
+ std_paths[PIRectangle]=current;
current=vgCreatePath(VG_PATH_FORMAT_STANDARD,
VG_PATH_DATATYPE_F,1.f,0.f,
0,0,0);
vguEllipse(current,0.f,0.f,1.f,1.f);
// Point
- std_paths[Point]=current;
+ std_paths[PIPoint]=current;
}
void OsdOpenVG::destroyPaths()
{
- vgDestroyPath(std_paths[HorzLine]);
- vgDestroyPath(std_paths[VertLine]);
- vgDestroyPath(std_paths[Rectangle]);
- vgDestroyPath(std_paths[Point]);
+ vgDestroyPath(std_paths[PIHorzLine]);
+ vgDestroyPath(std_paths[PIVertLine]);
+ vgDestroyPath(std_paths[PIRectangle]);
+ vgDestroyPath(std_paths[PIPoint]);
}
void initPaths();
void destroyPaths();
- VGPath std_paths[Point+1];
+ VGPath std_paths[PIPoint+1];
long long lastrendertime;
void InternalRendering();
void getScreenSize(int &width, int &height);
DrawImageLoading
};
enum PathIndex {
- HorzLine,
- VertLine,
- Rectangle,
- Point
+ PIHorzLine,
+ PIVertLine,
+ PIRectangle,
+ PIPoint
};
enum Corner{
command_mutex.Lock();
removeCommands(x,y,width,height); // remove commands below the box
unsigned int ref=osd->getStyleRef(c);
- commands.push_back(SVGCommand::PaintPath(x,y,width,height,Rectangle,ref));
+ commands.push_back(SVGCommand::PaintPath(x,y,width,height,PIRectangle,ref));
command_mutex.Unlock();
return 1;
{
command_mutex.Lock();
unsigned int ref=osd->getStyleRef(c);
- commands.push_back(SVGCommand::PaintPath(x1,y,x2-x1,1,HorzLine,ref));
+ commands.push_back(SVGCommand::PaintPath(x1,y,x2-x1,1,PIHorzLine,ref));
command_mutex.Unlock();
}
void SurfaceVector::drawVertLine(int x, int y1, int y2, const DrawStyle& c){
command_mutex.Lock();
unsigned int ref=osd->getStyleRef(c);
- commands.push_back(SVGCommand::PaintPath(x,y1,1,y2-y1,VertLine,ref));
+ commands.push_back(SVGCommand::PaintPath(x,y1,1,y2-y1,PIVertLine,ref));
command_mutex.Unlock();
}
void SurfaceVector::drawPoint(int x, int y, DrawStyle& c, bool fastdraw){
if (!fastdraw) command_mutex.Lock();
unsigned int ref=osd->getStyleRef(c);
- commands.push_back(SVGCommand::PaintPath(x,y,1,1,Point,ref));
+ commands.push_back(SVGCommand::PaintPath(x,y,1,1,PIPoint,ref));
if (!fastdraw) command_mutex.Unlock();
}
void SurfaceVector::drawMonoBitmap(UCHAR* base, int dx, int dy, unsigned int height,unsigned int width, DrawStyle& nextColour)
char* pointer;
char* savepointer;
- pointer = strtok_r(buffer, "\t\n", &savepointer);
+ pointer = STRTOKR(buffer, "\t\n", &savepointer);
while(pointer)
{
drawText(pointer, xposmod + columns[currentColumn], ypos_mod + curline * fontHeight, width - columns[currentColumn], colour);
- pointer = strtok_r(NULL, "\t\n", &savepointer);
+ pointer = STRTOKR(NULL, "\t\n", &savepointer);
if (pointer) {
char delimiter = text[pointer - buffer-1];
if (delimiter == '\t') currentColumn++;