diff options
Diffstat (limited to 'src/ppu.c')
-rw-r--r-- | src/ppu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -169,7 +169,7 @@ putcolors(u8 *addr) { | |||
169 | IWRAM_CODE | 169 | IWRAM_CODE |
170 | void | 170 | void |
171 | ppu_pixel(u32 *layer, u16 x, u16 y, u8 color) { | 171 | ppu_pixel(u32 *layer, u16 x, u16 y, u8 color) { |
172 | if (x >= SCREEN_WIDTH || y >= SCREEN_HEIGHT) return; | 172 | if (x > SCREEN_WIDTH || y > SCREEN_HEIGHT) return; |
173 | size_t tile_x = x / 8; | 173 | size_t tile_x = x / 8; |
174 | size_t tile_y = y / 8; | 174 | size_t tile_y = y / 8; |
175 | size_t start_col = x % 8; | 175 | size_t start_col = x % 8; |