From 12ae5745dbf8cb12c0fcd89f4b0bb79e9e4ca5c7 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 17 Mar 2018 21:04:48 +0200 Subject: [PATCH] While fixing some rendering issues, this change was incorrect. --- Core/display.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Core/display.c b/Core/display.c index 9a11e72..18fe3bd 100755 --- a/Core/display.c +++ b/Core/display.c @@ -537,14 +537,8 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles) gb->position_in_line = - (gb->io_registers[GB_IO_SCX] & 7) - 8; gb->fetcher_x = ((gb->io_registers[GB_IO_SCX]) / 8) & 0x1f; - { - uint8_t rendering_delay = 5; - if (gb->is_cgb) { - rendering_delay = 6; - } - gb->cycles_for_line += rendering_delay; - GB_SLEEP(gb, display, 10, rendering_delay); - } + gb->cycles_for_line += 5; + GB_SLEEP(gb, display, 10, 5); /* The actual rendering cycle */ gb->fetcher_divisor = false;