From c0821c9229ef488260350d9d5a179f54670eb89a Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 8 Oct 2022 17:14:58 +0100 Subject: [PATCH] Ensure packed(4) --- agb/src/display/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index fba6bd04..f33c6430 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -1198,7 +1198,7 @@ enum ColourMode { /// This can be obtained from X/Y scale and rotation angle with /// [`agb::syscall::affine_matrix`]. #[derive(Copy, Clone, Debug, PartialEq, Eq)] -#[repr(C, packed)] +#[repr(C, packed(4))] pub struct AffineMatrixAttributes { /// Adjustment made to *X* coordinate when drawing *horizontal* lines. /// Also known as "dx".