From 575976bf527a50dc2389e461b279d0a8e3ed3f90 Mon Sep 17 00:00:00 2001 From: xokz <106196742+xokz@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:03:24 -0400 Subject: [PATCH] Update bitmap4.rs --- agb/src/display/bitmap4.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/display/bitmap4.rs b/agb/src/display/bitmap4.rs index 91fe3a48..4ef454e2 100644 --- a/agb/src/display/bitmap4.rs +++ b/agb/src/display/bitmap4.rs @@ -48,9 +48,9 @@ impl Bitmap4 { let c = addr.get(x_in_screen, y_in_screen); if x & 0b1 != 0 { - addr.set(x_in_screen, y_in_screen, (c & 0xff) | u16::from(colour) << 8); + addr.set(x_in_screen, y_in_screen, c & 0xff | u16::from(colour) << 8); } else { - addr.set(x_in_screen, y_in_screen, (c & 0xff00) | u16::from(colour)); + addr.set(x_in_screen, y_in_screen, c & 0xff00 | u16::from(colour)); } }