From cde3bca0ea27e30c93f3d92979f338e96e85eb55 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 1 Oct 2022 15:30:37 +0100 Subject: [PATCH] Make the background rotate again --- agb/examples/affine_background.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/examples/affine_background.rs b/agb/examples/affine_background.rs index 04267053..21966e0d 100644 --- a/agb/examples/affine_background.rs +++ b/agb/examples/affine_background.rs @@ -48,7 +48,7 @@ fn main(mut gba: agb::Gba) -> ! { let scroll_pos = (scroll_x as i16, scroll_y as i16); bg.set_scroll_pos(scroll_pos.into()); - bg.set_transform((0, 0), (1, 1), 0); + bg.set_transform((0, 0), (1, 1), rotation); rotation += rotation_increase; if rotation >= num!(255.) {