mirror of
https://github.com/hyprwm/hyprutils.git
synced 2024-11-17 06:05:59 +01:00
oopes
This commit is contained in:
parent
6cdbb75974
commit
720b6562f0
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ Mat3x3 Mat3x3::outputProjection(const Vector2D& size, eTransform transform) {
|
||||||
// Rotation + reflection
|
// Rotation + reflection
|
||||||
mat.matrix[0] = x * t.matrix[0];
|
mat.matrix[0] = x * t.matrix[0];
|
||||||
mat.matrix[1] = x * t.matrix[1];
|
mat.matrix[1] = x * t.matrix[1];
|
||||||
mat.matrix[3] = y * -t.matrix[3];
|
mat.matrix[3] = y * t.matrix[3];
|
||||||
mat.matrix[4] = y * -t.matrix[4];
|
mat.matrix[4] = y * t.matrix[4];
|
||||||
|
|
||||||
// Translation
|
// Translation
|
||||||
mat.matrix[2] = -copysign(1.0f, mat.matrix[0] + mat.matrix[1]);
|
mat.matrix[2] = -copysign(1.0f, mat.matrix[0] + mat.matrix[1]);
|
||||||
|
|
Loading…
Reference in a new issue