From 94009441be969478b5fa55534b5a592c7323a5e6 Mon Sep 17 00:00:00 2001 From: Amaryllis Kulla Date: Tue, 2 Nov 2021 05:26:48 +0100 Subject: [PATCH] Graphics::resizeScreen(): Remove upper bound --- src/graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics.cpp b/src/graphics.cpp index 52aef55..f13f950 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -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);