mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
matrix: rename wlr_matrix_texture to wlr_matrix_projection
This commit is contained in:
parent
876f07e9f1
commit
7894fca224
4 changed files with 6 additions and 8 deletions
|
|
@ -109,7 +109,7 @@ void wlr_matrix_transform(float mat[static 9],
|
|||
}
|
||||
|
||||
// Equivilent to glOrtho(0, width, 0, height, 1, -1) with the transform applied
|
||||
void wlr_matrix_texture(float mat[static 9], int32_t width, int32_t height,
|
||||
void wlr_matrix_projection(float mat[static 9], int width, int height,
|
||||
enum wl_output_transform transform) {
|
||||
memset(mat, 0, sizeof(*mat) * 9);
|
||||
|
||||
|
|
|
|||
|
|
@ -139,8 +139,8 @@ void wlr_output_update_enabled(struct wlr_output *output, bool enabled) {
|
|||
}
|
||||
|
||||
static void wlr_output_update_matrix(struct wlr_output *output) {
|
||||
wlr_matrix_texture(output->transform_matrix, output->width, output->height,
|
||||
output->transform);
|
||||
wlr_matrix_projection(output->transform_matrix, output->width,
|
||||
output->height, output->transform);
|
||||
}
|
||||
|
||||
void wlr_output_enable(struct wlr_output *output, bool enable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue