From ba6364064fa5d7f7a340d315676c2a90d14ba68c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 3 Jan 2009 06:12:05 +0000 Subject: [PATCH] Fixed bug #663 Fixed mouse wheel direction --- src/video/win32/SDL_win32events.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/video/win32/SDL_win32events.c b/src/video/win32/SDL_win32events.c index 48d26f054..7f937ca47 100644 --- a/src/video/win32/SDL_win32events.c +++ b/src/video/win32/SDL_win32events.c @@ -286,10 +286,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2); } if (flags & RI_MOUSE_WHEEL) { - if (raw->data.mouse.usButtonData != 0) { - SDL_SendMouseWheel(index, 0, - raw->data.mouse.usButtonData); - } + SDL_SendMouseWheel(index, 0, + (short)raw->data.mouse.usButtonData); } SDL_stack_free(lpb); }