Graphics::resizeScreen(): Remove upper bound

This commit is contained in:
Amaryllis Kulla 2021-11-02 05:26:48 +01:00
parent e32aa71f4b
commit 94009441be
1 changed files with 2 additions and 2 deletions

View File

@ -1063,8 +1063,8 @@ int Graphics::height() const
void Graphics::resizeScreen(int width, int height)
{
width = clamp(width, 1, 640);
height = clamp(height, 1, 480);
width = std::max(1, width);
height = std::max(1, height);
Vec2i size(width, height);