Fix matrix setup in surface_map()

dev
Kristian Høgsberg 15 years ago
parent 6619d38311
commit 2cdc18452e
  1. 3
      compositor.c

@ -691,8 +691,9 @@ surface_map(struct wl_client *client,
{ {
struct wlsc_surface *es = (struct wlsc_surface *) surface; 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_scale(&es->matrix, width, height, 1);
wlsc_matrix_translate(&es->matrix, x, y, 0);
} }
static void static void

Loading…
Cancel
Save