mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-22 11:23:17 +02:00
Fixed a bug where LYC would be compared to the wrong value in the first cycle of a frame
This commit is contained in:
@@ -380,7 +380,7 @@ static void update_display_state(GB_gameboy_t *gb, uint8_t cycles)
|
|||||||
gb->io_registers[GB_IO_STAT] &= ~3;
|
gb->io_registers[GB_IO_STAT] &= ~3;
|
||||||
gb->io_registers[GB_IO_STAT] |= 2;
|
gb->io_registers[GB_IO_STAT] |= 2;
|
||||||
}
|
}
|
||||||
else if (position_in_line == 0) {
|
else if (position_in_line == 0 && gb->display_cycles != 0) {
|
||||||
should_compare_ly = gb->is_cgb;
|
should_compare_ly = gb->is_cgb;
|
||||||
ly_for_comparison--;
|
ly_for_comparison--;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user