src/video/win32/SDL_win32events.c
changeset 2975 317b2f8e5e4f
parent 2974 d2f68ec8c1d0
child 2990 502adab079a4
     1.1 --- a/src/video/win32/SDL_win32events.c	Sat Jan 03 06:03:56 2009 +0000
     1.2 +++ b/src/video/win32/SDL_win32events.c	Sat Jan 03 06:12:05 2009 +0000
     1.3 @@ -286,10 +286,8 @@
     1.4                  SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2);
     1.5              }
     1.6              if (flags & RI_MOUSE_WHEEL) {
     1.7 -                if (raw->data.mouse.usButtonData != 0) {
     1.8 -                    SDL_SendMouseWheel(index, 0,
     1.9 -                                       raw->data.mouse.usButtonData);
    1.10 -                }
    1.11 +                SDL_SendMouseWheel(index, 0,
    1.12 +                                   (short)raw->data.mouse.usButtonData);
    1.13              }
    1.14              SDL_stack_free(lpb);
    1.15          }