mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
px_offset_x and px_offset_y were unused
This commit is contained in:
parent
3f607b379a
commit
bd4ae7d2fb
|
@ -62,12 +62,6 @@ pub(super) trait BackgroundSizePrivate: BackgroundSize + Sized {
|
||||||
fn tile_pos_y(&self, y: i32) -> u16 {
|
fn tile_pos_y(&self, y: i32) -> u16 {
|
||||||
((y as u32) & (self.height() - 1)) as u16
|
((y as u32) & (self.height() - 1)) as u16
|
||||||
}
|
}
|
||||||
fn px_offset_x(&self, x: i32) -> u16 {
|
|
||||||
((x as u32) & (self.width() * 8 - 1)) as u16
|
|
||||||
}
|
|
||||||
fn px_offset_y(&self, y: i32) -> u16 {
|
|
||||||
((y as u32) & (self.height() * 8 - 1)) as u16
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BackgroundSize for RegularBackgroundSize {
|
impl BackgroundSize for RegularBackgroundSize {
|
||||||
|
|
Loading…
Reference in a new issue