This commit is contained in:
Lior Halphon 2020-03-01 00:23:50 +02:00
parent b7194402eb
commit 2a8b26d5e6

View File

@ -970,6 +970,7 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles)
} }
} }
/* TODO: What happens when WX=0? */
if (!GB_is_cgb(gb) && gb->wx_triggered && !gb->window_is_being_fetched && if (!GB_is_cgb(gb) && gb->wx_triggered && !gb->window_is_being_fetched &&
gb->fetcher_state == 0 && gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 7) ) { gb->fetcher_state == 0 && gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 7) ) {
// Insert a pixel right at the FIFO's end // Insert a pixel right at the FIFO's end