This commit is contained in:
Lior Halphon 2018-04-06 11:37:49 +03:00
parent 0c86ff1ee4
commit cb01259073
1 changed files with 1 additions and 0 deletions

View File

@ -576,6 +576,7 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles)
On the CGB, this bit is checked only when the pixel is actually popped from the FIFO. */
while (gb->n_visible_objs != 0 &&
(gb->position_in_line < 160 || gb->position_in_line >= (uint8_t)(-8)) &&
gb->obj_comperators[gb->n_visible_objs - 1] < (uint8_t)(gb->position_in_line + 8)) {
gb->n_visible_objs--;
}