int\r
MySearchPath(char *installDir, char *name, char *fullname)\r
{\r
- char *dummy;\r
- if(name[0] == '~' && name[1] == '\\') { // [HGM] recognize ~ as HOMEPATH environment variable\r
- installDir = getenv("HOMEPATH");\r
- name += 2;\r
- strcpy(fullname, installDir);\r
- strcat(fullname, "\\");\r
- strcat(fullname, name);\r
+ char *dummy, buf[MSG_SIZ];\r
+ if(name[0] == '%' && strchr(name+1, '%')) { // [HGM] recognize %*% as environment variable\r
+ strcpy(buf, name+1);\r
+ *strchr(buf, '%') = 0;\r
+ installDir = getenv(buf);\r
+ sprintf(fullname, "%s\\%s", installDir, strchr(name+1, '%')+1);\r
return strlen(fullname);\r
}\r
return (int) SearchPath(installDir, name, NULL, MSG_SIZ, fullname, &dummy);\r
/* Mouse Wheel is being rolled forward\r
* Play moves forward\r
*/\r
- if((short)HIWORD(wParam) > 0 && currentMove < forwardMostMove) \r
+ if((short)HIWORD(wParam) < 0 && currentMove < forwardMostMove) \r
{ if(lastDir == 1) ForwardEvent(); else lastDir = 1; } // [HGM] suppress first event in direction\r
/* Mouse Wheel is being rolled backward\r
* Play moves backward\r
*/\r
- if((short)HIWORD(wParam) < 0 && currentMove > backwardMostMove) \r
+ if((short)HIWORD(wParam) > 0 && currentMove > backwardMostMove) \r
{ if(lastDir == -1) BackwardEvent(); else lastDir = -1; }\r
}\r
break;\r
TagsPopUp(tags, CmailMsg());\r
free(tags);\r
}\r
- SAY("programs start playing each other");\r
+ SAY("computer starts playing both sides");\r
break;\r
\r
case IDM_AnalysisMode:\r
\r
case IDM_EditPosition:\r
EditPositionEvent();\r
- SAY("to set up a position type a FEN");\r
+ SAY("enter a FEN string or setup a position on the board using the control R pop up menu");\r
break;\r
\r
case IDM_Training:\r
ReleaseCapture();\r
DrawPosition(TRUE, NULL);\r
}\r
+ TagsPopDown();\r
}\r
\r
\r