From eb352085f15ad1eb9b4664372506f9db5ddd9836 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sat, 5 Jun 2021 22:14:08 +0100 Subject: [PATCH] have objects be hidden by default --- agb/src/display/object.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index ea702dca..69c734e6 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -238,11 +238,13 @@ impl AffineMatrix<'_> { impl ObjectAttribute { fn new() -> Self { - ObjectAttribute { + let mut o = ObjectAttribute { a0: 0, a1: 0, a2: 0, - } + }; + o.set_mode(Mode::Hidden); + o } }