From: H.G. Muller Date: Sun, 9 May 2010 20:15:27 +0000 (+0200) Subject: Reverse mousewheel action X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=08f180588d2bd10c715f1613ee788601b7c0b7ee;p=xboard.git Reverse mousewheel action Apparently WinBoard was stepping in the opposite direction through the game in reaction to the mousewheel as every other GUI in existence. --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 0ac478c..b5b0594 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -3866,12 +3866,12 @@ MouseEvent(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) /* Mouse Wheel is being rolled forward * Play moves forward */ - if((short)HIWORD(wParam) > 0 && currentMove < forwardMostMove) + if((short)HIWORD(wParam) < 0 && currentMove < forwardMostMove) { if(lastDir == 1) ForwardEvent(); else lastDir = 1; } // [HGM] suppress first event in direction /* Mouse Wheel is being rolled backward * Play moves backward */ - if((short)HIWORD(wParam) < 0 && currentMove > backwardMostMove) + if((short)HIWORD(wParam) > 0 && currentMove > backwardMostMove) { if(lastDir == -1) BackwardEvent(); else lastDir = -1; } } break;