Graphics: Fix resize_screen
This commit is contained in:
		
							parent
							
								
									c5c58fa9cd
								
							
						
					
					
						commit
						50e393fe6e
					
				
					 2 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -119,7 +119,7 @@ void EventThread::process(RGSSThreadData &rtData)
 | 
				
			||||||
		case SDL_WINDOWEVENT :
 | 
							case SDL_WINDOWEVENT :
 | 
				
			||||||
			switch (event.window.event)
 | 
								switch (event.window.event)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
			case SDL_WINDOWEVENT_RESIZED :
 | 
								case SDL_WINDOWEVENT_SIZE_CHANGED :
 | 
				
			||||||
				windowSizeMsg.notifyChange(event.window.data1,
 | 
									windowSizeMsg.notifyChange(event.window.data1,
 | 
				
			||||||
				                           event.window.data2);
 | 
									                           event.window.data2);
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -809,8 +809,6 @@ void Graphics::resizeScreen(int width, int height)
 | 
				
			||||||
	if (p->scRes == size)
 | 
						if (p->scRes == size)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	shState->eThread().requestWindowResize(width, height);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	p->scRes = size;
 | 
						p->scRes = size;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	p->screen.setResolution(width, height);
 | 
						p->screen.setResolution(width, height);
 | 
				
			||||||
| 
						 | 
					@ -826,7 +824,7 @@ void Graphics::resizeScreen(int width, int height)
 | 
				
			||||||
	TEX::bind(p->transBuffer.tex);
 | 
						TEX::bind(p->transBuffer.tex);
 | 
				
			||||||
	TEX::allocEmpty(width, height);
 | 
						TEX::allocEmpty(width, height);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	p->updateScreenResoRatio(p->threadData);
 | 
						shState->eThread().requestWindowResize(width, height);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DEF_ATTR_RD_SIMPLE(Graphics, Brightness, int, p->brightness)
 | 
					DEF_ATTR_RD_SIMPLE(Graphics, Brightness, int, p->brightness)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue