Fixed #61
This commit is contained in:
parent
0c86ff1ee4
commit
cb01259073
@ -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. */
|
On the CGB, this bit is checked only when the pixel is actually popped from the FIFO. */
|
||||||
|
|
||||||
while (gb->n_visible_objs != 0 &&
|
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->obj_comperators[gb->n_visible_objs - 1] < (uint8_t)(gb->position_in_line + 8)) {
|
||||||
gb->n_visible_objs--;
|
gb->n_visible_objs--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user