diff --git a/agb/src/syscall.rs b/agb/src/syscall.rs index dd123ace..3ab60830 100644 --- a/agb/src/syscall.rs +++ b/agb/src/syscall.rs @@ -139,7 +139,7 @@ pub fn arc_tan2(x: i16, y: i32) -> i16 { result } -#[repr(C, packed)] +#[repr(C, packed(4))] pub struct BgAffineSetData { pub matrix: AffineMatrixAttributes, pub position: Vector2D>, @@ -161,7 +161,7 @@ pub fn bg_affine_matrix( scale: Vector2D>, rotation: Num, ) -> BgAffineSetData { - #[repr(C, packed)] + #[repr(C, packed(4))] struct Input { bg_center: Vector2D>, display_center: Vector2D, @@ -200,7 +200,7 @@ pub fn obj_affine_matrix( rotation: Num, ) -> AffineMatrixAttributes { #[allow(dead_code)] - #[repr(C, packed)] + #[repr(C, packed(4))] struct Input { scale: Vector2D>, rotation: u16,