From 49233b059e4af5a8bd8f9ada596b8ae0470db0e5 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 20 Nov 2015 09:43:23 +0100 Subject: [PATCH] gui-win32: fix scroll wheel (thanks hiro) --- gui-win32/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui-win32/screen.c b/gui-win32/screen.c index c645086..4aaa786 100644 --- a/gui-win32/screen.c +++ b/gui-win32/screen.c @@ -330,6 +330,7 @@ WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) int i; Rectangle r; + b = 0; switch(msg) { case WM_CREATE: break; @@ -354,7 +355,6 @@ WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) case WM_RBUTTONDOWN: x = LOWORD(lparam); y = HIWORD(lparam); - b = 0; if(wparam & MK_LBUTTON) b = 1; if(wparam & MK_MBUTTON)