From 91d40f0c5be13b082f407f4661890a5f8cc9c93d Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Tue, 8 Jan 2019 18:20:08 -0700 Subject: [PATCH] Make ObjectAttributes's and AffineParameters's fields public --- src/oam.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/oam.rs b/src/oam.rs index fe7f239..b84f2e3 100644 --- a/src/oam.rs +++ b/src/oam.rs @@ -130,9 +130,9 @@ impl OBJAttr2 { #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct ObjectAttributes { - attr0: OBJAttr0, - attr1: OBJAttr1, - attr2: OBJAttr2, + pub attr0: OBJAttr0, + pub attr1: OBJAttr1, + pub attr2: OBJAttr2, } /// The object attributes, but there are gaps in the array, so we must not @@ -160,10 +160,10 @@ pub fn read_obj_attributes(slot: usize) -> Option { #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct AffineParameters { - pa: i16, - pb: i16, - pc: i16, - pd: i16, + pub pa: i16, + pub pb: i16, + pub pc: i16, + pub pd: i16, } // TODO: find the correct fixed-point type here.