FPS on and Fullscreen
Restore default win size and center on screen, after leaving fullscreen when fps is on.
This commit is contained in:
		
							parent
							
								
									8eeb5b6d38
								
							
						
					
					
						commit
						128ccd4664
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -268,6 +268,8 @@ void EventThread::process(RGSSThreadData &rtData)
 | 
			
		|||
					SDL_SetWindowTitle(win, pendingTitle);
 | 
			
		||||
					pendingTitle[0] = '\0';
 | 
			
		||||
					havePendingTitle = false;
 | 
			
		||||
					SDL_SetWindowSize(win, defScreenW, defScreenH);
 | 
			
		||||
					SDL_SetWindowPosition(win, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
 | 
			
		||||
				}
 | 
			
		||||
				else
 | 
			
		||||
				{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue