[client] use the event data instead of calling SDL_GetWindowSize

This commit is contained in:
Geoffrey McRae 2020-01-03 15:26:07 +11:00
parent 4345d94d68
commit 899dbff7e9
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
B1-46-g074af5d16c+1 B1-47-g4345d94d68+1

View File

@ -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;