diff --git a/src/ppu.rs b/src/ppu.rs index 24fbe4f586997718d8b8fbbb9d2d1cf41ba37ae2..34823467f510bc1ae69fb85b7c33874516bcd5da 100644 --- a/src/ppu.rs +++ b/src/ppu.rs @@ -1255,7 +1255,7 @@ impl Ppu { // the priority is only set in case the priority of // the background (over OAM) is set in the attributes // and the pixel is not transparent - self.priority_buffer[color_offset] = priority && pixel > 0; + self.priority_buffer[color_offset] = priority && pixel != 0; // increments the current tile X position in drawing x += 1;