changed to use rotation directly

as was previously written, this would not do anything as integer rotation is an identity.
This commit is contained in:
Corwin Kuiper 2021-06-08 19:12:25 +01:00
parent a5f4673806
commit 8b206ba40c

View file

@ -126,12 +126,10 @@ pub fn affine_matrix(
rotation: u16, rotation: u16,
} }
let rotation_for_input = (rotation as u16) << 8;
let input = Input { let input = Input {
y_scale: x_scale.to_raw(), y_scale: x_scale.to_raw(),
x_scale: y_scale.to_raw(), x_scale: y_scale.to_raw(),
rotation: rotation_for_input, rotation: rotation as u16,
}; };
unsafe { unsafe {