break;\r
\r
case WM_MOUSEMOVE:\r
- MovePV(pt.x - boardRect.left, pt.y - boardRect.top, boardRect.bottom - boardRect.top);
+ MovePV(pt.x - boardRect.left, pt.y - boardRect.top, boardRect.bottom - boardRect.top);\r
if ((appData.animateDragging || appData.highlightDragging)\r
&& (wParam & MK_LBUTTON)\r
&& dragInfo.from.x >= 0) \r
}\r
break;\r
\r
- case WM_MBUTTONUP:
- case WM_RBUTTONUP:
- ReleaseCapture();
- UnLoadPV();
- break;
-
+ case WM_MBUTTONUP:\r
+ case WM_RBUTTONUP:\r
+ ReleaseCapture();\r
+ UnLoadPV();\r
+ break;\r
+ \r
case WM_MBUTTONDOWN:\r
case WM_RBUTTONDOWN:\r
ErrorPopDown();\r
MenuPopup(hwnd, pt, LoadMenu(hInst, "ShogiPieceMenu"), -1);\r
}\r
break;\r
- case IcsObserving:
- if(!appData.icsEngineAnalyze) break;
- case IcsPlayingWhite:
- case IcsPlayingBlack:
- if(!appData.zippyPlay) goto noZip;
- case MachinePlaysWhite:
- case MachinePlaysBlack:
- case TwoMachinesPlay:
- case AnalyzeMode:
- case AnalyzeFile:
- if (!appData.dropMenu) {
- SetCapture(hwndMain);
- LoadPV(pt.x - boardRect.left, pt.y - boardRect.top);
- break;
- }
- if(gameMode == TwoMachinesPlay || gameMode == AnalyzeMode ||
- gameMode == AnalyzeFile || gameMode == IcsObserving) break;
- case EditGame:
- noZip:
- if (x < 0 || y < 0) break;
- if (!appData.dropMenu || appData.testLegality &&
- gameInfo.variant != VariantBughouse &&
- gameInfo.variant != VariantCrazyhouse) break;
+ case IcsObserving:\r
+ if(!appData.icsEngineAnalyze) break;\r
+ case IcsPlayingWhite:\r
+ case IcsPlayingBlack:\r
+ if(!appData.zippyPlay) goto noZip;\r
+ case MachinePlaysWhite:\r
+ case MachinePlaysBlack:\r
+ case TwoMachinesPlay:\r
+ case AnalyzeMode:\r
+ case AnalyzeFile:\r
+ if (!appData.dropMenu) {\r
+ SetCapture(hwndMain);\r
+ LoadPV(pt.x - boardRect.left, pt.y - boardRect.top);\r
+ break;\r
+ }\r
+ if(gameMode == TwoMachinesPlay || gameMode == AnalyzeMode ||\r
+ gameMode == AnalyzeFile || gameMode == IcsObserving) break;\r
+ case EditGame:\r
+ noZip:\r
+ if (x < 0 || y < 0) break;\r
+ if (!appData.dropMenu || appData.testLegality &&\r
+ gameInfo.variant != VariantBughouse &&\r
+ gameInfo.variant != VariantCrazyhouse) break;\r
fromX = x;\r
fromY = y;\r
hmenu = LoadMenu(hInst, "DropPieceMenu");\r