Better emulation of negative WX positions

This commit is contained in:
Lior Halphon 2020-02-24 21:23:06 +02:00
parent 248e7bc332
commit 7456beb7b9
1 changed files with 2 additions and 1 deletions

View File

@ -434,12 +434,13 @@ static void render_pixel_if_possible(GB_gameboy_t *gb)
}
}
if (gb->bg_fifo_paused) return;
/* Drop pixels for scrollings */
if (gb->position_in_line >= 160 || (gb->disable_rendering && !gb->sgb)) {
gb->position_in_line++;
return;
}
if (gb->bg_fifo_paused) return;
/* Mixing */