commit | 2cdc18452eced84dca24bef8b61bac8bbf7c9032 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Tue Jun 08 10:44:38 2010 -0400 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Tue Jun 08 10:44:38 2010 -0400 |
tree | 77b258213755eab1f1e05a6cefa69997a055cd37 | |
parent | 6619d383112809e142e4c66f04bcb8624ee0b7a2 [diff] [blame] |
Fix matrix setup in surface_map()
diff --git a/compositor.c b/compositor.c index 9ca06b0..5af0a15 100644 --- a/compositor.c +++ b/compositor.c
@@ -691,8 +691,9 @@ { 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