mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
redraw everything if there is no overlap
This commit is contained in:
parent
631bf2bae2
commit
fe9461e5c5
|
@ -209,7 +209,10 @@ impl<'a> Background<'a> {
|
|||
// commit shadowed register
|
||||
unsafe { self.get_register().set(self.shadowed_register) };
|
||||
|
||||
if self.poisoned {
|
||||
let commited_screen = Rect::new(self.commited_position, (30, 20).into());
|
||||
let shadowed_screen = Rect::new(self.shadowed_position, (30, 20).into());
|
||||
|
||||
if self.poisoned || !shadowed_screen.touches(commited_screen) {
|
||||
let positions_to_be_updated =
|
||||
Rect::new(self.shadowed_position / 8 - (1, 1).into(), (31, 21).into()).iter();
|
||||
|
||||
|
|
Loading…
Reference in a new issue