main.cpp: Immediately query the actual window size after creation

This commit is contained in:
Jonas Kulla 2014-12-23 20:27:22 +01:00
parent 69795be30b
commit 3596fc568d
1 changed files with 4 additions and 0 deletions

View File

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