mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
fix sprite size ordering
This commit is contained in:
parent
b1ff352623
commit
1d8ac652f1
|
@ -196,11 +196,11 @@ impl ObjectAttribute {
|
|||
}
|
||||
|
||||
fn set_size(&mut self, size: Size) {
|
||||
let lower = size as u16 & 0b11;
|
||||
let upper = (size as u16 >> 2) & 0b11;
|
||||
let a1 = size as u16 & 0b11;
|
||||
let a0 = (size as u16 >> 2) & 0b11;
|
||||
|
||||
self.a0 = set_bits(self.a0, lower, 2, 0xE);
|
||||
self.a1 = set_bits(self.a1, upper, 2, 0xE);
|
||||
self.a0 = set_bits(self.a0, a0, 2, 0xE);
|
||||
self.a1 = set_bits(self.a1, a1, 2, 0xE);
|
||||
}
|
||||
|
||||
fn set_x(&mut self, x: u8) {
|
||||
|
|
Loading…
Reference in a new issue