gui-win32: fix scroll wheel (thanks hiro)

This commit is contained in:
David du Colombier 2015-11-20 09:43:23 +01:00
parent 445b6293d6
commit 49233b059e
1 changed files with 1 additions and 1 deletions

View File

@ -330,6 +330,7 @@ WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
int i; int i;
Rectangle r; Rectangle r;
b = 0;
switch(msg) { switch(msg) {
case WM_CREATE: case WM_CREATE:
break; break;
@ -354,7 +355,6 @@ WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
case WM_RBUTTONDOWN: case WM_RBUTTONDOWN:
x = LOWORD(lparam); x = LOWORD(lparam);
y = HIWORD(lparam); y = HIWORD(lparam);
b = 0;
if(wparam & MK_LBUTTON) if(wparam & MK_LBUTTON)
b = 1; b = 1;
if(wparam & MK_MBUTTON) if(wparam & MK_MBUTTON)