mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:33:40 +00:00
[client] use the event data instead of calling SDL_GetWindowSize
This commit is contained in:
parent
4345d94d68
commit
899dbff7e9
@ -617,7 +617,8 @@ int eventFilter(void * userdata, SDL_Event * event)
|
||||
break;
|
||||
|
||||
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
||||
SDL_GetWindowSize(state.window, &state.windowW, &state.windowH);
|
||||
state.windowW = event->window.data1;
|
||||
state.windowH = event->window.data2;
|
||||
updatePositionInfo();
|
||||
realignGuest = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user