From 1b36e74f4fd586dbbaeb209966c40bed8d547e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Mon, 19 Jun 2023 00:11:59 +0100 Subject: [PATCH] fix: small comparison change --- src/ppu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ppu.rs b/src/ppu.rs index 24fbe4f5..34823467 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; -- GitLab