mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
function to reset the window
This commit is contained in:
parent
44fd7d0027
commit
f9d9220ead
|
@ -74,6 +74,12 @@ impl Window {
|
||||||
self.window_bits &= u8::MAX ^ (1 << bit);
|
self.window_bits &= u8::MAX ^ (1 << bit);
|
||||||
self.window_bits |= (value as u8) << bit;
|
self.window_bits |= (value as u8) << bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn reset(&mut self) -> &mut Self {
|
||||||
|
*self = Self::new();
|
||||||
|
|
||||||
|
self
|
||||||
|
}
|
||||||
pub fn set_blend_enable(&mut self, blnd: bool) -> &mut Self {
|
pub fn set_blend_enable(&mut self, blnd: bool) -> &mut Self {
|
||||||
self.set_bit(5, blnd);
|
self.set_bit(5, blnd);
|
||||||
|
|
||||||
|
@ -109,6 +115,11 @@ impl MovableWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn reset(&mut self) -> &mut Self {
|
||||||
|
*self = Self::new();
|
||||||
|
|
||||||
|
self
|
||||||
|
}
|
||||||
pub fn set_blend_enable(&mut self, blnd: bool) -> &mut Self {
|
pub fn set_blend_enable(&mut self, blnd: bool) -> &mut Self {
|
||||||
self.inner.set_blend_enable(blnd);
|
self.inner.set_blend_enable(blnd);
|
||||||
self
|
self
|
||||||
|
|
Loading…
Reference in a new issue