main.cpp: Immediately query the actual window size after creation
This commit is contained in:
		
							parent
							
								
									69795be30b
								
							
						
					
					
						commit
						3596fc568d
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue