From 08f180588d2bd10c715f1613ee788601b7c0b7ee Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 9 May 2010 22:15:27 +0200 Subject: [PATCH] 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. --- winboard/winboard.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.0.4