From d178ece9090d6aea39f759bb3a96f1c8866b039d Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 26 Dec 2021 19:57:18 +0200 Subject: [PATCH] Disabled an incorrectly emulated portion of the TILE_SET glitch --- Core/display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/display.c b/Core/display.c index 38dca24..ff3d39f 100644 --- a/Core/display.c +++ b/Core/display.c @@ -1642,14 +1642,15 @@ abort_fetching_object: } skip_slow_mode_3: - /* TODO: Verify */ + /* TODO: This seems incorrect (glitches Tesserae), verify further */ + /* if (gb->fetcher_state == 4 || gb->fetcher_state == 5) { gb->data_for_sel_glitch = gb->current_tile_data[0]; } else { gb->data_for_sel_glitch = gb->current_tile_data[1]; } - + */ while (gb->lcd_x != 160 && !gb->disable_rendering && gb->screen && !gb->sgb) { /* Oh no! The PPU and LCD desynced! Fill the rest of the line whith white. */ uint32_t *dest = NULL;