Skip to content

Commit

Permalink
gb: minor improvement to code style
Browse files Browse the repository at this point in the history
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
  • Loading branch information
deltabeard committed May 4, 2022
1 parent 950e9ef commit fff1d2e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions peanut_gb.h
Original file line number Diff line number Diff line change
Expand Up @@ -1474,9 +1474,8 @@ void __gb_draw_line(struct gb_s *gb)
#if !PEANUT_GB_HIGH_LCD_ACCURACY
/* If sprite isn't on this line, continue. */
if(gb->gb_reg.LY +
(gb->gb_reg.LCDC & LCDC_OBJ_SIZE ?
0 : 8) >= OY
|| gb->gb_reg.LY + 16 < OY)
(gb->gb_reg.LCDC & LCDC_OBJ_SIZE ? 0 : 8) >= OY ||
gb->gb_reg.LY + 16 < OY)
continue;
#endif

Expand Down

0 comments on commit fff1d2e

Please sign in to comment.