From: H.G. Muller Date: Mon, 24 Oct 2011 18:00:28 +0000 (+0200) Subject: Don't adjust clock on right-click in EditGame mode WB X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=238666d40994f027a42e521ccfbcdc4527379d9d;p=xboard.git Don't adjust clock on right-click in EditGame mode WB This was a change that was already done for the left-clicks, but somehow never made it togit for the right-clicks --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 0016e7a..7638faf 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -4227,9 +4227,9 @@ MouseEvent(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) if(y == -2) { /* [HGM] right mouse button in clock area edit-game mode ups clock */ if (PtInRect((LPRECT) &whiteRect, pt)) { - if (gameMode == EditGame || GetKeyState(VK_SHIFT) < 0) AdjustClock(flipClock, 1); + if (GetKeyState(VK_SHIFT) < 0) AdjustClock(flipClock, 1); } else if (PtInRect((LPRECT) &blackRect, pt)) { - if (gameMode == EditGame || GetKeyState(VK_SHIFT) < 0) AdjustClock(!flipClock, 1); + if (GetKeyState(VK_SHIFT) < 0) AdjustClock(!flipClock, 1); } break; }