shithub: choc

Download patch

ref: 3bf06ab27b707bb4e80d865c7b98fbd58b771b35
parent: b9416dc6f9e569adcd067c9acd0b18e5d3240dd8
author: Fabian Greffrath <fabian@greffrath.com>
date: Thu Oct 4 09:42:55 EDT 2018

video: explicitly check for aspect_ratio_correct's value being 1

This doesn't make any factual change for Choco but allows forks to
assign different values to this variable.

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1356,7 +1356,7 @@
         fullscreen = true;
     }
 
-    if (aspect_ratio_correct)
+    if (aspect_ratio_correct == 1)
     {
         actualheight = SCREENHEIGHT_4_3;
     }
--- a/src/setup/display.c
+++ b/src/setup/display.c
@@ -144,7 +144,7 @@
     int i;
 
     // Pick which window sizes list to use
-    if (aspect_ratio_correct)
+    if (aspect_ratio_correct == 1)
     {
         sizes = window_sizes_scaled;
     }
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -737,7 +737,7 @@
     int w_factor, h_factor;
     byte *rowbuf;
 
-    if (aspect_ratio_correct)
+    if (aspect_ratio_correct == 1)
     {
         // scale up to accommodate aspect ratio correction
         w_factor = 5;