Skip to content

Commit

Permalink
Fixed Windows compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 7, 2013
1 parent 3b050fc commit 48e44f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/windows/SDL_windowsevents.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 48e44f7

Please sign in to comment.