mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
fix affine matrix copying
This commit is contained in:
parent
0e9910c517
commit
7265576e2a
|
@ -61,7 +61,7 @@ impl AffineMatrixVram {
|
||||||
for (idx, component) in components.iter().enumerate() {
|
for (idx, component) in components.iter().enumerate() {
|
||||||
unsafe {
|
unsafe {
|
||||||
(OBJECT_ATTRIBUTE_MEMORY as *mut u16)
|
(OBJECT_ATTRIBUTE_MEMORY as *mut u16)
|
||||||
.add(location * 4 * idx + 3)
|
.add(location * 16 + idx * 4 + 3)
|
||||||
.write_volatile(*component);
|
.write_volatile(*component);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue