Fix matrix setup in surface_map()
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 8 Jun 2010 14:44:38 +0000 (10:44 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 8 Jun 2010 14:44:38 +0000 (10:44 -0400)
compositor.c

index 9ca06b0..5af0a15 100644 (file)
@@ -691,8 +691,9 @@ surface_map(struct wl_client *client,
 {
        struct wlsc_surface *es = (struct wlsc_surface *) surface;
 
-       wlsc_matrix_translate(&es->matrix, x, y, 0);
+       wlsc_matrix_init(&es->matrix);
        wlsc_matrix_scale(&es->matrix, width, height, 1);
+       wlsc_matrix_translate(&es->matrix, x, y, 0);
 }
 
 static void