diff --git a/agb/examples/affine_background.rs b/agb/examples/affine_background.rs index d852238e..ae09643f 100644 --- a/agb/examples/affine_background.rs +++ b/agb/examples/affine_background.rs @@ -43,8 +43,8 @@ fn main(mut gba: agb::Gba) -> ! { loop { input.update(); - scroll_x += input.x_tri() as i32; - scroll_y += input.y_tri() as i32; + scroll_x += input.x_tri() as i16; + scroll_y += input.y_tri() as i16; let scroll_pos = (scroll_x, scroll_y); diff --git a/agb/src/display/affine.rs b/agb/src/display/affine.rs index 008b58ad..921d460d 100644 --- a/agb/src/display/affine.rs +++ b/agb/src/display/affine.rs @@ -298,11 +298,11 @@ impl AffineMatrixBackground { transform_origin: impl Into>>, scale: impl Into>>, rotation: Num, - position: impl Into>>, + position: impl Into>, ) -> Self { crate::syscall::bg_affine_matrix( transform_origin.into(), - position.into().try_change_base::().unwrap().floor(), + position.into(), scale.into().try_change_base().unwrap(), rotation.rem_euclid(1.into()).try_change_base().unwrap(), )