X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=AGL%2Fmeta-agl.git;a=blobdiff_plain;f=meta-agl-core%2Frecipes-graphics%2Fwayland%2Fweston%2F0001-toy-toolkit-Fix-rotations.patch;fp=meta-agl-core%2Frecipes-graphics%2Fwayland%2Fweston%2F0001-toy-toolkit-Fix-rotations.patch;h=8c506409ca3a400febcee34c4436e5be2f850c27;hp=0000000000000000000000000000000000000000;hb=dd0920346046339ac9f293b6925db0a6444a0591;hpb=62dc0e81f446b75a4746d49cd893dac6697f0c58 diff --git a/meta-agl-core/recipes-graphics/wayland/weston/0001-toy-toolkit-Fix-rotations.patch b/meta-agl-core/recipes-graphics/wayland/weston/0001-toy-toolkit-Fix-rotations.patch new file mode 100644 index 000000000..8c506409c --- /dev/null +++ b/meta-agl-core/recipes-graphics/wayland/weston/0001-toy-toolkit-Fix-rotations.patch @@ -0,0 +1,32 @@ +From dbdbc6b5bce99f370e9627aeff9cfeaa7fe018c2 Mon Sep 17 00:00:00 2001 +From: Derek Foreman +Date: Mon, 26 Jun 2023 11:19:23 -0500 +Subject: [PATCH] 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. + +Upstream-Status: Pending + +Signed-off-by: Derek Foreman +(cherry picked from commit f0196739ae42195f178ce889e12460228a7a25cb) +--- + clients/window.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/clients/window.c b/clients/window.c +index f8bcd4d77..30f64109e 100644 +--- a/clients/window.c ++++ b/clients/window.c +@@ -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); + } +-- +2.40.1 +