aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-15 15:33:58 +0100
committeremersion <contact@emersion.fr>2018-03-15 15:33:58 +0100
commit824a95ad19062e867178593f0937d14049422989 (patch)
tree1ad1793d6e7379979340eff1f0385afa549ea58d /rootston
parentd26b67cb06509fb39d9ed473a5d27b1f241ff635 (diff)
matrix: use 2D matrices
Diffstat (limited to 'rootston')
-rw-r--r--rootston/output.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 47236720..29fb1202 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -287,7 +287,7 @@ static void render_surface(struct wlr_surface *surface, double lx, double ly,
goto damage_finish;
}
- float matrix[16];
+ float matrix[9];
enum wl_output_transform transform =
wlr_output_transform_invert(surface->current->transform);
wlr_matrix_project_box(matrix, &box, transform, rotation,
@@ -297,7 +297,7 @@ static void render_surface(struct wlr_surface *surface, double lx, double ly,
pixman_box32_t *rects = pixman_region32_rectangles(&damage, &nrects);
for (int i = 0; i < nrects; ++i) {
scissor_output(output, &rects[i]);
- wlr_render_with_matrix(renderer, surface->texture, matrix, data->alpha);
+ wlr_render_texture_with_matrix(renderer, surface->texture, matrix, data->alpha);
}
damage_finish:
@@ -353,7 +353,7 @@ static void render_decorations(struct roots_view *view,
goto damage_finish;
}
- float matrix[16];
+ float matrix[9];
wlr_matrix_project_box(matrix, &box, WL_OUTPUT_TRANSFORM_NORMAL,
view->rotation, output->wlr_output->transform_matrix);
float color[] = { 0.2, 0.2, 0.2, view->alpha };