From 37f6259f066a7e51700be5a98e45baaa0da9889a Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Mon, 6 Aug 2018 12:54:38 -0500 Subject: [PATCH] Fix Chrono Trigger bug where screen jumps. --- gtk/src/gtk_display.cpp | 10 +--------- ppu.cpp | 3 +++ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/gtk/src/gtk_display.cpp b/gtk/src/gtk_display.cpp index 285f84d1..97511ddd 100644 --- a/gtk/src/gtk_display.cpp +++ b/gtk/src/gtk_display.cpp @@ -1622,15 +1622,7 @@ S9xDeinitUpdate (int width, int height) { int yoffset = 0; - if (height == SNES_HEIGHT_EXTENDED && top_level->last_height == SNES_HEIGHT) - { - top_level->last_height = height; - height = SNES_HEIGHT; - } - else - { - top_level->last_height = height; - } + top_level->last_height = height; top_level->last_width = width; if (gui_config->overscan) diff --git a/ppu.cpp b/ppu.cpp index af25105f..8d637f36 100644 --- a/ppu.cpp +++ b/ppu.cpp @@ -1064,7 +1064,10 @@ void S9xSetPPU (uint8 Byte, uint16 Address) #endif } else + { PPU.ScreenHeight = SNES_HEIGHT; + IPPU.RenderedScreenHeight = PPU.ScreenHeight; + } if ((Memory.FillRAM[0x2133] ^ Byte) & 3) {