Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Jul 13, 2024
1 parent 44b70bf commit 0c9cf8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Core/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0c9cf8d

Please sign in to comment.