Graphics::resizeScreen(): Remove upper bound
This commit is contained in:
		
							parent
							
								
									e32aa71f4b
								
							
						
					
					
						commit
						94009441be
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -1063,8 +1063,8 @@ int Graphics::height() const
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Graphics::resizeScreen(int width, int height)
 | 
					void Graphics::resizeScreen(int width, int height)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	width = clamp(width, 1, 640);
 | 
						width = std::max(1, width);
 | 
				
			||||||
	height = clamp(height, 1, 480);
 | 
						height = std::max(1, height);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Vec2i size(width, height);
 | 
						Vec2i size(width, height);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue