From 899dbff7e9e5becab2c31ec319bd84142e6cdfec Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 3 Jan 2020 15:26:07 +1100 Subject: [PATCH] [client] use the event data instead of calling SDL_GetWindowSize --- VERSION | 2 +- client/src/main.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 5d8da8bb..d4e46533 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-46-g074af5d16c+1 \ No newline at end of file +B1-47-g4345d94d68+1 \ No newline at end of file diff --git a/client/src/main.c b/client/src/main.c index c943318a..27546984 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -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;