mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
Revert "Adjust mouse scaling calculation for SDL in windowed mode"
This reverts commit 3b298b7c42
.
This commit is contained in:
parent
3b298b7c42
commit
f80691eb6e
1 changed files with 2 additions and 2 deletions
|
@ -864,8 +864,8 @@ void I_GetEvent(void)
|
||||||
//SDL_memset(&event, 0, sizeof(event_t));
|
//SDL_memset(&event, 0, sizeof(event_t));
|
||||||
event.type = ev_mouse;
|
event.type = ev_mouse;
|
||||||
event.data1 = 0;
|
event.data1 = 0;
|
||||||
event.data2 = (INT32)lround(mousemovex * ((float)realwidth / (float)wwidth));
|
event.data2 = (INT32)lround(mousemovex * ((float)wwidth / (float)realwidth));
|
||||||
event.data3 = (INT32)lround(mousemovey * ((float)realheight / (float)wheight));
|
event.data3 = (INT32)lround(mousemovey * ((float)wheight / (float)realheight));
|
||||||
D_PostEvent(&event);
|
D_PostEvent(&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue