shithub: zelda3

Download patch

ref: d3a52a62fbc7d5c5b093d1d119656f32d374c52f
parent: e4d167c2d736580d67834d02fd5ad737057ddc0e
author: Snesrev <[email protected]>
date: Sat Sep 17 22:26:25 EDT 2022

Change window scaling behavior (Fixes #88)

--- a/main.c
+++ b/main.c
@@ -201,8 +201,8 @@
   else if (g_config.fullscreen == 2)
     g_win_flags ^= SDL_WINDOW_FULLSCREEN;
 
-  // Window scale (0=50%, 1=100%, 2=200%, 3=300%, etc.)
-  g_current_window_scale = g_config.window_scale == 0 ? 1 : IntMin(g_config.window_scale * 2, kMaxWindowScale);
+  // Window scale (1=100%, 2=200%, 3=300%, etc.)
+  g_current_window_scale = (g_config.window_scale == 0) ? 2 : IntMin(g_config.window_scale, kMaxWindowScale);
 
   // audio_freq: Use common sampling rates (see user config file. values higher than 48000 are not supported.)
   if (g_config.audio_freq < 11025 || g_config.audio_freq > 48000)
--- a/zelda3.ini
+++ b/zelda3.ini
@@ -12,8 +12,8 @@
 [Graphics]
 # Fullscreen mode (0=windowed, 1=desktop fullscreen, 2=fullscreen w/mode change)
 Fullscreen = 0
-# Window scale (0=50%, 1=100%, 2=200%, 3=300%, etc.)
-WindowScale = 2
+# Window scale (1=100%, 2=200%, 3=300%, etc.)
+WindowScale = 3
 NewRenderer = 1
 EnhancedMode7 = 1
 IgnoreAspectRatio = 0