From: H.G. Muller Date: Thu, 21 Jan 2010 18:24:49 +0000 (+0100) Subject: Convert to DOS line endings X-Git-Tag: master-20100206~35 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=20b8e547f72ddf993de23c1ebd5fb99c6aa5fd5c;p=xboard.git Convert to DOS line endings For easier understanding of upcoming diffs of winboard.c --- diff --git a/winboard/winboard.c b/winboard/winboard.c index aa13836..8a965c4 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -3719,7 +3719,7 @@ MouseEvent(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) break; case WM_MOUSEMOVE: - 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); if ((appData.animateDragging || appData.highlightDragging) && (wParam & MK_LBUTTON) && dragInfo.from.x >= 0) @@ -3757,12 +3757,12 @@ MouseEvent(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) } break; - case WM_MBUTTONUP: - case WM_RBUTTONUP: - ReleaseCapture(); - UnLoadPV(); - break; - + case WM_MBUTTONUP: + case WM_RBUTTONUP: + ReleaseCapture(); + UnLoadPV(); + break; + case WM_MBUTTONDOWN: case WM_RBUTTONDOWN: ErrorPopDown(); @@ -3809,29 +3809,29 @@ MouseEvent(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) MenuPopup(hwnd, pt, LoadMenu(hInst, "ShogiPieceMenu"), -1); } break; - 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: + 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; fromX = x; fromY = y; hmenu = LoadMenu(hInst, "DropPieceMenu");