]> git.sesse.net Git - pistorm/commitdiff
Fix stupid automatic screen scaling
authorbeeanyew <beeanyew@gmail.com>
Tue, 11 May 2021 15:37:49 +0000 (17:37 +0200)
committerbeeanyew <beeanyew@gmail.com>
Tue, 11 May 2021 15:37:49 +0000 (17:37 +0200)
platforms/amiga/rtg/rtg-output-raylib.c

index 04e2fe414a0e8ff7d1eebff5e40c1945f47c6047..83a2fad4b5e310b374880927d9c06c821e05f90c 100644 (file)
@@ -167,7 +167,7 @@ reinit_raylib:;
     origin.x = 0.0f;
     origin.y = 0.0f;
 
-    if (dstscale.height * 2 < GetScreenHeight()) {
+    if (dstscale.height * 2 <= GetScreenHeight()) {
         if (width == 320) {
             if (GetScreenHeight() == 720) {
                 dstscale.width = 960;
@@ -177,7 +177,7 @@ reinit_raylib:;
                 dstscale.height = 1080;
             }
         } else {
-            while (dstscale.height < GetScreenHeight()) {
+            while (dstscale.height + height <= GetScreenHeight()) {
                 dstscale.height += height;
                 dstscale.width += width;
             }