From 5b7c32913441a40bf307c3cd569e88cac424f23b Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Wed, 13 Feb 2019 18:20:55 -0600 Subject: [PATCH] GFX.DoInterlace-- should occur even if we don't render frame. Also, adjust the turbo frames label. --- gfx.cpp | 5 ++--- win32/rsrc/snes9x.rc | 7 ++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gfx.cpp b/gfx.cpp index 2d83c2df..03aa481f 100644 --- a/gfx.cpp +++ b/gfx.cpp @@ -199,6 +199,8 @@ void S9xBuildDirectColourMaps (void) void S9xStartScreenRefresh (void) { GFX.InterlaceFrame = !GFX.InterlaceFrame; + if (GFX.DoInterlace) + GFX.DoInterlace--; if (IPPU.RenderThisFrame) { @@ -210,9 +212,6 @@ void S9xStartScreenRefresh (void) return; } - if (GFX.DoInterlace) - GFX.DoInterlace--; - S9xGraphicsScreenResize(); IPPU.RenderedFramesCount++; diff --git a/win32/rsrc/snes9x.rc b/win32/rsrc/snes9x.rc index 9a86147a..b3954c4f 100644 --- a/win32/rsrc/snes9x.rc +++ b/win32/rsrc/snes9x.rc @@ -111,7 +111,7 @@ BEGIN RTEXT "Skip rendering",IDC_LABEL_STURBO,12,85,84,14,SS_CENTERIMAGE LTEXT "seconds after last change (0 disables auto-save)",IDC_LABEL_ASRAM_TEXT,156,47,161,14,SS_CENTERIMAGE LTEXT "frames in auto-frame rate mode",IDC_LABEL_SMAX_TEXT,156,66,138,14,SS_CENTERIMAGE - LTEXT "frames in Turbo mode",IDC_LABEL_STURBO_TEXT,156,85,92,14,SS_CENTERIMAGE + LTEXT "frames in Turbo mode",IDC_LABEL_STURBO_TEXT,156,85,143,14,SS_CENTERIMAGE RTEXT "Config file:",IDC_STATIC,24,12,72,8 EDITTEXT IDC_CONFIG_NAME_BOX,102,9,49,14,ES_AUTOHSCROLL | ES_READONLY | ES_NUMBER LTEXT "all of Snes9x's settings are stored in this file",IDC_STATIC,158,11,160,11 @@ -1132,6 +1132,11 @@ BEGIN 0 END +IDD_EMU_SETTINGS AFX_DIALOG_LAYOUT +BEGIN + 0 +END + #endif // English (United States) resources /////////////////////////////////////////////////////////////////////////////