From e5796d2a53d54a169207dcdaef604cce2eac1d76 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 --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403437 --- 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); }