main.cpp: Immediately query the actual window size after creation
This commit is contained in:
parent
69795be30b
commit
3596fc568d
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue