From a9af6ab36fec28f8508f5e30f09e7c20eeaaeaf4 Mon Sep 17 00:00:00 2001 From: pk-2000 <63214388+pk-2000@users.noreply.github.com> Date: Wed, 1 Sep 2021 19:14:53 +0300 Subject: [PATCH] Change the resolution Instead of using a static 640/480, now the resolution is dynamic and determined from the config.cpp. --- src/glstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glstate.cpp b/src/glstate.cpp index ff88de7..610ce50 100644 --- a/src/glstate.cpp +++ b/src/glstate.cpp @@ -120,7 +120,7 @@ GLState::GLState(const Config &conf) blendMode.init(BlendNormal); blend.init(true); scissorTest.init(false); - scissorBox.init(IntRect(0, 0, 640, 480)); + scissorBox.init(IntRect(0, 0, conf.defScreenW, conf.defScreenH)); program.init(0); if (conf.maxTextureSize > 0)