fix viewport resizing on screen resize.
This commit is contained in:
		
							parent
							
								
									f8e8d704b5
								
							
						
					
					
						commit
						1120c60cae
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -469,8 +469,9 @@ struct GraphicsPrivate
 | 
			
		|||
	{
 | 
			
		||||
		if (threadData->windowSizeMsg.pollChange(&winSize.x, &winSize.y))
 | 
			
		||||
		{
 | 
			
		||||
			glState.viewport.init(IntRect(0, 0, winSize.x, winSize.y));
 | 
			
		||||
			recalculateScreenSize();
 | 
			
		||||
			screen.setScreenSize(scSize.x, scSize.y);
 | 
			
		||||
			screen.setScreenSize(winSize.x, winSize.y);
 | 
			
		||||
			updateScreenResoRatio();
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue