diff --git a/src/vram/bitmap.rs b/src/vram/bitmap.rs index 0dc8606..f21919a 100644 --- a/src/vram/bitmap.rs +++ b/src/vram/bitmap.rs @@ -209,7 +209,7 @@ impl Mode4 { .index_unchecked(rounded_down_index) .cast::() }; - if real_index == rounded_down_index { + if real_index != rounded_down_index { // even byte, change the high bits let old_val = address.read(); address.write((old_val & 0xFF) | ((pal8bpp as u16) << 8));