Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
hack: fix y-inverted output
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Jun 11, 2020
1 parent ce115a8 commit a49da81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/wlr_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ void wlr_matrix_projection(float mat[static 9], int width, int height,
// Rotation + reflection
mat[0] = x * t[0];
mat[1] = x * t[1];
mat[3] = y * -t[3];
mat[4] = y * -t[4];
mat[3] = y * t[3];
mat[4] = y * t[4];

// Translation
mat[2] = -copysign(1.0f, mat[0] + mat[1]);
Expand Down

0 comments on commit a49da81

Please sign in to comment.