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