# HG changeset patch # User Sam Lantinga # Date 1230963125 0 # Node ID 317b2f8e5e4fa65c7fbd245d652f6531530010d0 # Parent d2f68ec8c1d0c6c3eb102f498d7973c32ed28efe Fixed bug #663 Fixed mouse wheel direction diff -r d2f68ec8c1d0 -r 317b2f8e5e4f src/video/win32/SDL_win32events.c --- a/src/video/win32/SDL_win32events.c Sat Jan 03 06:03:56 2009 +0000 +++ b/src/video/win32/SDL_win32events.c Sat Jan 03 06:12:05 2009 +0000 @@ -286,10 +286,8 @@ 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); }