Skip to content
Snippets Groups Projects
Verified Commit a7a30cb5 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: small spell fix

parent c9271834
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
Pipeline #2598 failed
...@@ -662,7 +662,7 @@ impl Ppu { ...@@ -662,7 +662,7 @@ impl Ppu {
// 0xFF69 — BCPD/BGPD (CGB only) // 0xFF69 — BCPD/BGPD (CGB only)
0xff69 => { 0xff69 => {
self.palettes_color[0][self.palette_address_bg as usize] = value; self.palettes_color[0][self.palette_address_bg as usize] = value;
//@TODO: update palette background data accordingly for the give update //@TODO: update palette background data accordingly for the given update
// index - should not be a problem // index - should not be a problem
if self.auto_increment_bg { if self.auto_increment_bg {
self.palette_address_bg = (self.palette_address_bg + 1) & 0x3f; self.palette_address_bg = (self.palette_address_bg + 1) & 0x3f;
...@@ -676,7 +676,7 @@ impl Ppu { ...@@ -676,7 +676,7 @@ impl Ppu {
// 0xFF6B — OCPD/OBPD (CGB only) // 0xFF6B — OCPD/OBPD (CGB only)
0xff6b => { 0xff6b => {
self.palettes_color[1][self.palette_address_obj as usize] = value; self.palettes_color[1][self.palette_address_obj as usize] = value;
//@TODO: update palette object data accordingly for the give update //@TODO: update palette object data accordingly for the given update
// index - should not be a problem // index - should not be a problem
if self.auto_increment_obj { if self.auto_increment_obj {
self.palette_address_obj = (self.palette_address_obj + 1) & 0x3f; self.palette_address_obj = (self.palette_address_obj + 1) & 0x3f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment