diff options
author | Bad Diode <bd@badd10de.dev> | 2022-11-28 18:23:59 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-11-28 18:23:59 +0100 |
commit | a12953ab78933bbfef36fa7cff04e5829ab0c947 (patch) | |
tree | 487277535fd95f6b83dc7e69de3ecb525240d78b /src/ppu.c | |
parent | 656d36ed6971d12c668b19e609e8f25aba49cb88 (diff) | |
download | uxngba-a12953ab78933bbfef36fa7cff04e5829ab0c947.tar.gz uxngba-a12953ab78933bbfef36fa7cff04e5829ab0c947.zip |
Change controller behaviour to avoid repeats on hold
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; |