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

docs: new comment added

parent d297cca8
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
Pipeline #2607 failed
......@@ -747,6 +747,7 @@ impl Ppu {
self.palettes_color[0][self.palette_address_bg as usize] = value;
//@TODO: update palette background data accordingly for the given update
// index - should not be a problem
// compute_palette_color should probably be the name
if self.auto_increment_bg {
self.palette_address_bg = (self.palette_address_bg + 1) & 0x3f;
}
......@@ -761,6 +762,7 @@ impl Ppu {
self.palettes_color[1][self.palette_address_obj as usize] = value;
//@TODO: update palette object data accordingly for the given update
// index - should not be a problem
// compute_palette_color should probably be the name
if self.auto_increment_obj {
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