From 9affb6dfb79dfc2330fc8602c1d3e3c8a6dfe98a Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 1 Oct 2022 15:35:24 +0100 Subject: [PATCH] Use negative numbers --- examples/hyperspace-roll/src/battle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hyperspace-roll/src/battle.rs b/examples/hyperspace-roll/src/battle.rs index 691c7a85..b0354242 100644 --- a/examples/hyperspace-roll/src/battle.rs +++ b/examples/hyperspace-roll/src/battle.rs @@ -488,7 +488,7 @@ pub(crate) fn battle_screen( agb.sfx.battle(); agb.sfx.frame(); - help_background.set_scroll_pos((u16::MAX - 16, u16::MAX - 97).into()); + help_background.set_scroll_pos((-16i16, -97i16).into()); crate::background::load_help_text(&mut agb.vram, help_background, 1, (0, 0)); crate::background::load_help_text(&mut agb.vram, help_background, 2, (0, 1));