From be963611ce389526019755c0ee588cfa06821a63 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sat, 5 Jun 2021 22:41:34 +0100 Subject: [PATCH] affine starts at position 9 --- 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 ea702dca..b1b0eb65 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -220,7 +220,7 @@ impl ObjectAttribute { } fn set_affine(&mut self, aff_id: u8) { - self.a1 = set_bits(self.a1, aff_id as u16, 5, 8); + self.a1 = set_bits(self.a1, aff_id as u16, 5, 0x9); } }