fix affine matrix copying

This commit is contained in:
Corwin 2023-04-03 22:41:13 +01:00
parent 0e9910c517
commit 7265576e2a
No known key found for this signature in database

View file

@ -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);
} }
} }