Factor out some thread communication code (window size, bindings)
This commit is contained in:
parent
c63a8947ce
commit
3411435138
4 changed files with 25 additions and 69 deletions
src
|
@ -289,7 +289,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
int winW, winH;
|
||||
SDL_GetWindowSize(win, &winW, &winH);
|
||||
rtData.windowSizeMsg.notifyChange(winW, winH);
|
||||
rtData.windowSizeMsg.post(Vec2i(winW, winH));
|
||||
|
||||
/* Load and post key bindings */
|
||||
rtData.bindingUpdateMsg.post(loadBindings(conf));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue