mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
use a name matching rust conventions
This commit is contained in:
parent
7735baecc9
commit
44fd7d0027
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ impl MovableWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_position_byte(&mut self, rect: Rect<u8>) -> &mut Self {
|
pub fn set_position_u8(&mut self, rect: Rect<u8>) -> &mut Self {
|
||||||
self.rect = rect;
|
self.rect = rect;
|
||||||
|
|
||||||
self
|
self
|
||||||
|
@ -147,6 +147,6 @@ impl MovableWindow {
|
||||||
(rect.position.x as u8, rect.position.y as u8).into(),
|
(rect.position.x as u8, rect.position.y as u8).into(),
|
||||||
(rect.size.x as u8, rect.size.y as u8).into(),
|
(rect.size.x as u8, rect.size.y as u8).into(),
|
||||||
);
|
);
|
||||||
self.set_position_byte(new_rect)
|
self.set_position_u8(new_rect)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue