Fixed Windows compile error

main
Sam Lantinga 2013-11-06 23:59:24 -08:00
parent 3b050fc953
commit 48e44f7fcb
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}