toy-toolkit: Fix rotations

Ever since commit 3012934 some rotations have been broken. This is because
I transposed xy and yx in the cairo_matrix_init() call.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
(cherry picked from commit f0196739ae)
This commit is contained in:
Derek Foreman 2023-06-26 11:19:23 -05:00 committed by Marius Vlad
parent 55986c4288
commit ef39bc3db9

View file

@ -1661,7 +1661,7 @@ widget_cairo_update_transform(struct widget *widget, cairo_t *cr)
surface->allocation.width,
surface->allocation.height,
surface->buffer_scale);
cairo_matrix_init(&m, matrix.d[0], matrix.d[4], matrix.d[1],
cairo_matrix_init(&m, matrix.d[0], matrix.d[1], matrix.d[4],
matrix.d[5], matrix.d[12], matrix.d[13]);
cairo_transform(cr, &m);
}