aboutsummaryrefslogtreecommitdiff
path: root/src/ppu/ppu.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-25 13:08:00 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-25 13:08:00 +0100
commit5850f4ab766256791f72301349e30d4cd304c675 (patch)
treeae72fb95eb7a028eb0a86fdc07340d97942f285a /src/ppu/ppu.c
parent1a2bd8b70c12d497acb2eba548d161b2bfc4f9b6 (diff)
ppusim done
Diffstat (limited to 'src/ppu/ppu.c')
-rw-r--r--src/ppu/ppu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppu/ppu.c b/src/ppu/ppu.c
index e2fccb9..5f33c55 100644
--- a/src/ppu/ppu.c
+++ b/src/ppu/ppu.c
@@ -18,7 +18,7 @@ void hh_ppu_update_background(unsigned index, hh_s_ppu_loc_bam_entry e) {
free(s.data);
}
-void hh_ppu_update_sprite(unsigned tilemap_index, hh_s_ppu_loc_sprite sprite) {
+void hh_ppu_update_sprite(unsigned tilemap_index, const hh_s_ppu_loc_sprite sprite) {
hh_s_ppu_vram_data s = hh_ppu_2nat_sprite(sprite);
s.offset = HH_PPU_VRAM_TMM_OFFSET + HH_PPU_VRAM_TMM_SPRITE_SIZE * tilemap_index;
hh_ppu_vram_write(s);