shithub: choc

Download patch

ref: db8a80473feaba572e4c9c486eae1e8c86bd4667
parent: 7a47cb6b18b732fff26bc96214978bea80ba330f
author: Mike Swanson <[email protected]>
date: Sat Mar 24 12:25:56 EDT 2018

video: allow integer_scaling to still force an 8:5 ratio

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -290,7 +290,7 @@
 // ratio consistent with the aspect_ratio_correct variable.
 static void AdjustWindowSize(void)
 {
-    if (aspect_ratio_correct)
+    if (aspect_ratio_correct || integer_scaling)
     {
         if (window_width * actualheight <= window_height * SCREENWIDTH)
         {
@@ -1243,7 +1243,7 @@
     // time this also defines the aspect ratio that is preserved while scaling
     // and stretching the texture into the window.
 
-    if (aspect_ratio_correct)
+    if (aspect_ratio_correct || integer_scaling)
     {
         SDL_RenderSetLogicalSize(renderer,
                                  SCREENWIDTH,