mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Update bitmap4.rs
This commit is contained in:
parent
fe90d4d8d7
commit
fdab4a3e6f
|
@ -89,7 +89,6 @@ impl Bitmap4<'_> {
|
|||
DISPLAY_CONTROL.set(swapped);
|
||||
}
|
||||
|
||||
|
||||
/// Draws 2-pixel wide point on the non-current page at (x, y) coordinates with colour
|
||||
/// index whose colour is specified in the background palette. Panics if (x,
|
||||
/// y) is out of the bounds of the screen.
|
||||
|
@ -140,7 +139,6 @@ impl Bitmap4<'_> {
|
|||
/// Fills non-current page with color.
|
||||
pub fn clear(&mut self, colour: u8) {
|
||||
let display = DISPLAY_CONTROL.get();
|
||||
|
||||
// get other page
|
||||
let page = if display & GraphicsSettings::PAGE_SELECT.bits() != 0 {
|
||||
Page::Front
|
||||
|
|
Loading…
Reference in a new issue