shithub: zelda3

Download patch

ref: e6fb7c20acff18ccfadd6ad4584e30984ae948d1
parent: d3a52a62fbc7d5c5b093d1d119656f32d374c52f
author: Patrick Mollohan <14967142+patrickmollohan@users.noreply.github.com>
date: Sat Sep 17 16:29:14 EDT 2022

Add support for 18:9 aspect ratio (#90)


--- a/config.c
+++ b/config.c
@@ -250,6 +250,8 @@
           g_config.extended_aspect_ratio = (224 * 16 / 9 - 256) / 2;
         else if (strcmp(s, "16:10") == 0)
           g_config.extended_aspect_ratio = (224 * 16 / 10 - 256) / 2;
+        else if (strcmp(s, "18:9") == 0)
+          g_config.extended_aspect_ratio = (224 * 18 / 9 - 256) / 2;
         else if (strcmp(s, "4:3") == 0)
           g_config.extended_aspect_ratio = 0;
         else if (strcmp(s, "unchanged_sprites") == 0)
--- a/types.h
+++ b/types.h
@@ -7,7 +7,7 @@
 enum {
   kEnableLargeScreen = 1,
   // How much extra spacing to add on the sides
-  kPpuExtraLeftRight = kEnableLargeScreen ? 71 : 0,
+  kPpuExtraLeftRight = kEnableLargeScreen ? 96 : 0,
 };
 
 typedef uint8_t uint8;
--- a/zelda3.ini
+++ b/zelda3.ini
@@ -3,7 +3,8 @@
 Autosave = 0
 DisplayPerfInTitle = 0
 
-# Extended aspect ratio, either 16:9 or 16:10. 4:3 means normal aspect ratio.
+
+# Extended aspect ratio, either 16:9, 16:10, or 18:9. 4:3 means normal aspect ratio.
 # Add ", unchanged_sprites" to avoid changing sprite spawn/die behavior. Without this
 # replays will be incompatible
 ExtendedAspectRatio = 4:3