[gtk+/wip/events: 18/19] xxx: testgestures for pinch/pan



commit e2ee6ecc241f8357814f95dcc326dd092d458ee4
Author: Benjamin Otte <otte redhat com>
Date:   Mon Mar 12 17:29:17 2012 +0100

    xxx: testgestures for pinch/pan

 tests/testgestures.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testgestures.c b/tests/testgestures.c
index 75c5188..14eab24 100644
--- a/tests/testgestures.c
+++ b/tests/testgestures.c
@@ -132,11 +132,11 @@ pinch_pan_get_matrix (cairo_matrix_t     *matrix,
 
   cairo_matrix_init_identity (matrix);
   scale = gtk_pinch_pan_gesture_get_zoom (pinch);
-  cairo_matrix_scale (matrix, scale, scale);
-  cairo_matrix_rotate (matrix, gtk_pinch_pan_gesture_get_rotation (pinch) * G_PI / 180);
   cairo_matrix_translate (matrix,
                           gtk_pinch_pan_gesture_get_x_offset (pinch),
                           gtk_pinch_pan_gesture_get_y_offset (pinch));
+  cairo_matrix_scale (matrix, scale, scale);
+  cairo_matrix_rotate (matrix, gtk_pinch_pan_gesture_get_rotation (pinch) * G_PI / 180);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]