mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
MR 3421 fix: remove unnecessary wlr_matrix_transform_inv
This commit is contained in:
parent
c5978ef8ec
commit
7f9bb0bbec
2 changed files with 0 additions and 32 deletions
|
|
@ -117,33 +117,6 @@ void wlr_matrix_transform(float mat[static 9],
|
|||
wlr_matrix_multiply(mat, mat, transforms[transform]);
|
||||
}
|
||||
|
||||
void wlr_matrix_transform_inv(float mat[static 9],
|
||||
enum wl_output_transform transform) {
|
||||
enum wl_output_transform inv;
|
||||
|
||||
switch (transform) {
|
||||
case WL_OUTPUT_TRANSFORM_90:
|
||||
inv = WL_OUTPUT_TRANSFORM_270;
|
||||
break;
|
||||
case WL_OUTPUT_TRANSFORM_180:
|
||||
inv = WL_OUTPUT_TRANSFORM_180;
|
||||
break;
|
||||
case WL_OUTPUT_TRANSFORM_270:
|
||||
inv = WL_OUTPUT_TRANSFORM_90;
|
||||
break;
|
||||
case WL_OUTPUT_TRANSFORM_NORMAL:
|
||||
case WL_OUTPUT_TRANSFORM_FLIPPED:
|
||||
case WL_OUTPUT_TRANSFORM_FLIPPED_90:
|
||||
case WL_OUTPUT_TRANSFORM_FLIPPED_180:
|
||||
case WL_OUTPUT_TRANSFORM_FLIPPED_270:
|
||||
default:
|
||||
inv = transform;
|
||||
break;
|
||||
}
|
||||
|
||||
wlr_matrix_multiply(mat, mat, transforms[inv]);
|
||||
}
|
||||
|
||||
// Equivalent to glOrtho(0, width, 0, height, 1, -1) with the transform applied
|
||||
void wlr_matrix_projection(float mat[static 9], int width, int height,
|
||||
enum wl_output_transform transform) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue