Fix #210
This commit is contained in:
parent
e5276e9d70
commit
7d57c1463d
|
@ -32,7 +32,7 @@ static void render_surface(struct wlr_surface *surface,
|
|||
|
||||
float translate_origin[16];
|
||||
wlr_matrix_translate(&translate_origin,
|
||||
ox + width/2, oy + height/2, 0);
|
||||
(int)ox + width / 2, (int)oy + height / 2, 0);
|
||||
float rotate[16];
|
||||
wlr_matrix_rotate(&rotate, rotation);
|
||||
float translate_center[16];
|
||||
|
@ -40,7 +40,6 @@ static void render_surface(struct wlr_surface *surface,
|
|||
float transform[16];
|
||||
wlr_matrix_mul(&translate_origin, &rotate, &transform);
|
||||
wlr_matrix_mul(&transform, &translate_center, &transform);
|
||||
|
||||
wlr_surface_get_matrix(surface, &matrix,
|
||||
&wlr_output->transform_matrix, &transform);
|
||||
wlr_render_with_matrix(desktop->server->renderer,
|
||||
|
|
Loading…
Reference in New Issue