1 From dbdbc6b5bce99f370e9627aeff9cfeaa7fe018c2 Mon Sep 17 00:00:00 2001
2 From: Derek Foreman <derek.foreman@collabora.com>
3 Date: Mon, 26 Jun 2023 11:19:23 -0500
4 Subject: [PATCH] toy-toolkit: Fix rotations
6 Ever since commit 3012934 some rotations have been broken. This is because
7 I transposed xy and yx in the cairo_matrix_init() call.
9 Upstream-Status: Pending
11 Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
12 (cherry picked from commit f0196739ae42195f178ce889e12460228a7a25cb)
14 clients/window.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/clients/window.c b/clients/window.c
18 index f8bcd4d77..30f64109e 100644
19 --- a/clients/window.c
20 +++ b/clients/window.c
21 @@ -1661,7 +1661,7 @@ widget_cairo_update_transform(struct widget *widget, cairo_t *cr)
22 surface->allocation.width,
23 surface->allocation.height,
24 surface->buffer_scale);
25 - cairo_matrix_init(&m, matrix.d[0], matrix.d[4], matrix.d[1],
26 + cairo_matrix_init(&m, matrix.d[0], matrix.d[1], matrix.d[4],
27 matrix.d[5], matrix.d[12], matrix.d[13]);
28 cairo_transform(cr, &m);