From 3596fc568dc9efd28ce9af1a2993cd2090b94dcb Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Tue, 23 Dec 2014 20:27:22 +0100 Subject: [PATCH] main.cpp: Immediately query the actual window size after creation --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index e2aace7..6ec3092 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -287,6 +287,10 @@ int main(int argc, char *argv[]) EventThread eventThread; RGSSThreadData rtData(&eventThread, argv[0], win, conf); + int winW, winH; + SDL_GetWindowSize(win, &winW, &winH); + rtData.windowSizeMsg.notifyChange(winW, winH); + /* Load and post key bindings */ rtData.bindingUpdateMsg.post(loadBindings(conf));