From 32a8b213fb81c43f52e2fc6af58caff819473c88 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 17 Nov 2022 21:04:53 +0000 Subject: [PATCH] disp -> display --- agb/src/display/bitmap4.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agb/src/display/bitmap4.rs b/agb/src/display/bitmap4.rs index cd2debc3..b40eff9c 100644 --- a/agb/src/display/bitmap4.rs +++ b/agb/src/display/bitmap4.rs @@ -58,10 +58,10 @@ impl Bitmap4 { /// index whose colour is specified in the background palette. Panics if (x, /// y) is out of the bounds of the screen. pub fn draw_point(&mut self, x: i32, y: i32, colour: u8) { - let disp = DISPLAY_CONTROL.get(); + let display = DISPLAY_CONTROL.get(); // get other page - let page = if disp & GraphicsSettings::PAGE_SELECT.bits() != 0 { + let page = if display & GraphicsSettings::PAGE_SELECT.bits() != 0 { Page::Front } else { Page::Back @@ -78,8 +78,8 @@ impl Bitmap4 { /// Flips page, changing the Gameboy advance to draw the contents of the /// other page pub fn flip_page(&mut self) { - let disp = DISPLAY_CONTROL.get(); - let swapped = disp ^ GraphicsSettings::PAGE_SELECT.bits(); + let display = DISPLAY_CONTROL.get(); + let swapped = display ^ GraphicsSettings::PAGE_SELECT.bits(); DISPLAY_CONTROL.set(swapped); } }