\r
\r
\r
+\r
return PM_WL;\r
case WhiteFalcon:\r
return PM_WV;\r
RECT *rect, char *color, char *flagFell)\r
{\r
char buf[100];\r
- char *str, *p;\r
+ char *str = buf, *p;\r
COLORREF oldFg, oldBg;\r
HFONT oldFont;\r
\r
str = buf;\r
} else {\r
highlight &= 1;\r
- str = color;\r
+ snprintf(buf, 100, "%s", color);\r
}\r
p = strchr(str, '_');\r
if(p) *p = (logoHeight > 0 ? 0 : ' ');\r
DisplayWhiteClock(long timeRemaining, int highlight)\r
{\r
HDC hdc;\r
- char *msg, *flag = whiteFlag && gameMode == TwoMachinesPlay ? "(!)" : "";\r
+ char *flag = whiteFlag && gameMode == TwoMachinesPlay ? "(!)" : "";\r
\r
if(appData.noGUI) return;\r
hdc = GetDC(hwndMain);\r
void\r
SetClockMessage (int color, char *msg)\r
{\r
- safeStrCpy(clockMsg[n], !msg ? "" : *msg ? msg : clockMsg[!n], MSG_SIZ);\r
+ safeStrCpy(clockMsg[color], !msg ? "" : *msg ? msg : clockMsg[!color], MSG_SIZ);\r
}\r
\r
int\r