mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 06:38:09 +02:00
toy-toolkit: Fix rotations
Ever since commit3012934some 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 commitf0196739ae)
This commit is contained in:
parent
55986c4288
commit
ef39bc3db9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue