From 12b824903cd853d45390c08d56087001cedf4a54 Mon Sep 17 00:00:00 2001 From: pk-2000 <63214388+pk-2000@users.noreply.github.com> Date: Wed, 1 Sep 2021 19:21:01 +0300 Subject: [PATCH] Resize screen auto adjustment Instead of using a window fixed 640/480 static size, the width and height will be determined from the game's thread window size. --- src/graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics.cpp b/src/graphics.cpp index c53fe0e..55de0d4 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -926,8 +926,8 @@ int Graphics::height() const void Graphics::resizeScreen(int width, int height) { - width = clamp(width, 1, 640); - height = clamp(height, 1, 480); + width = clamp(width, 1, p->threadData->config.defScreenW); + height = clamp(height, 1, p->threadData->config.defScreenH); Vec2i size(width, height);