Merge pull request #54 from corwinkuiper/object-hidden-by-default

Object hidden by default
This commit is contained in:
Corwin 2021-06-05 22:42:20 +01:00 committed by GitHub
commit aa10a893f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,18 +238,19 @@ impl AffineMatrix<'_> {
impl ObjectAttribute { impl ObjectAttribute {
fn new() -> Self { fn new() -> Self {
ObjectAttribute { let mut o = ObjectAttribute {
a0: 0, a0: 0,
a1: 0, a1: 0,
a2: 0, a2: 0,
} };
o.set_mode(Mode::Hidden);
o
} }
} }
impl ObjectControl { impl ObjectControl {
pub(crate) fn new() -> Self { pub(crate) fn new() -> Self {
let mut o = ObjectAttribute::new(); let o = ObjectAttribute::new();
o.set_mode(Mode::Hidden);
for index in 0..128 { for index in 0..128 {
unsafe { o.commit(index) }; unsafe { o.commit(index) };
} }