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:
Carlos Garnacho 2015-09-15 13:19:31 +02:00
parent a526f15b7d
commit d9a738dfac

View File

@ -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);