Skip to content
Permalink
Browse files

Fixed Windows compile error

  • Loading branch information
slouken committed Nov 7, 2013
1 parent 3b050fc commit 48e44f7fcb968c51a8c1eff815d9a94dbcfe6535
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/windows/SDL_windowsevents.c
@@ -491,12 +491,12 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
s_AccumulatedMotion += GET_WHEEL_DELTA_WPARAM(wParam);
if (s_AccumulatedMotion > 0) {
while (s_AccumulatedMotion >= WHEEL_DELTA) {
SDL_SendMouseWheel(data->window, 0, 1, 0, timestamp);
SDL_SendMouseWheel(data->window, 0, 1, 0);
s_AccumulatedMotion -= WHEEL_DELTA;
}
} else {
while (s_AccumulatedMotion <= -WHEEL_DELTA) {
SDL_SendMouseWheel(data->window, 0, -1, 0, timestamp);
SDL_SendMouseWheel(data->window, 0, -1, 0);
s_AccumulatedMotion += WHEEL_DELTA;
}
}

0 comments on commit 48e44f7

Please sign in to comment.