From 4cc7650ddc0c69e26068ab8f07d0f04789cc51c3 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sat, 5 Jun 2021 22:14:47 +0100 Subject: [PATCH] objects are hidden by default no need to do it twice --- agb/src/display/object.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index 69c734e6..17da17da 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -250,8 +250,7 @@ impl ObjectAttribute { impl ObjectControl { pub(crate) fn new() -> Self { - let mut o = ObjectAttribute::new(); - o.set_mode(Mode::Hidden); + let o = ObjectAttribute::new(); for index in 0..128 { unsafe { o.commit(index) }; }