mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed Windows compile error
This commit is contained in:
parent
3b050fc953
commit
48e44f7fcb
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user