forked from AuroraMiddleware/gtk
gtk-demo: Fix drawing of gestures demo feedback on CSD windows
It was wiping the translation initially applied to the cairo_t, so pick that up first before applying our own matrix changes.
This commit is contained in:
parent
a526f15b7d
commit
d9a738dfac
@ -86,9 +86,10 @@ drawing_area_draw (GtkWidget *widget,
|
||||
cairo_matrix_t matrix;
|
||||
gdouble angle, scale;
|
||||
|
||||
cairo_matrix_init_translate (&matrix,
|
||||
allocation.width / 2,
|
||||
allocation.height / 2);
|
||||
cairo_get_matrix (cr, &matrix);
|
||||
cairo_matrix_translate (&matrix,
|
||||
allocation.width / 2,
|
||||
allocation.height / 2);
|
||||
|
||||
cairo_save (cr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user