Fix save state issue that caused vblank callbacks timings to differ

This commit is contained in:
Lior Halphon 2021-12-02 11:21:12 +02:00
parent 486f8a2c10
commit b770bbea2e
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ static void sanitize_state(GB_gameboy_t *gb)
gb->window_tile_x &= 0x1F;
/* These are kind of DOS-ish if too large */
if (abs(gb->display_cycles) > 0x8000) {
if (abs(gb->display_cycles) > 0x80000) {
gb->display_cycles = 0;
}