git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 0c9cf8d59476f9af47adbdf9943c30fb3409658f
parent 44b70bf275dc3757d3bd287efefa59b23f989346
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 13 Jul 2024 17:11:39 +0300

Build fix

Diffstat:
MCore/display.c8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Core/display.c b/Core/display.c @@ -1732,16 +1732,16 @@ void GB_display_run(GB_gameboy_t *gb, unsigned cycles, bool force) if (should_activate_window) { gb->window_y++; + gb->window_tile_x = glitch_activate; + if (!glitch_activate) { + fifo_clear(&gb->bg_fifo); + } /* TODO: Verify fetcher access timings in this case */ if (gb->io_registers[GB_IO_WX] == 0 && (gb->io_registers[GB_IO_SCX] & 7)) { gb->cycles_for_line++; GB_SLEEP(gb, display, 42, 1); } gb->wx_triggered = true; - gb->window_tile_x = glitch_activate; - if (!glitch_activate) { - fifo_clear(&gb->bg_fifo); - } gb->fetcher_state = 0; gb->window_is_being_fetched = true; }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.