disp -> display

This commit is contained in:
Gwilym Kuiper 2022-11-17 21:04:53 +00:00
parent 140442fe0b
commit 32a8b213fb

View file

@ -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);
}
}