Fix matrix setup in surface_map()

This commit is contained in:
Kristian Høgsberg 2010-06-08 10:44:38 -04:00
parent 6619d38311
commit 2cdc18452e
1 changed files with 2 additions and 1 deletions

View 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