mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +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;
|
break;
|
||||||
|
|
||||||
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
||||||
SDL_GetWindowSize(state.window, &state.windowW, &state.windowH);
|
state.windowW = event->window.data1;
|
||||||
|
state.windowH = event->window.data2;
|
||||||
updatePositionInfo();
|
updatePositionInfo();
|
||||||
realignGuest = true;
|
realignGuest = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user