diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-05 14:55:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-10-05 14:55:55 -0400 |
commit | 7d57c1463da61ff16784e6b756356720a0af185c (patch) | |
tree | 4d91ec1f4c9394d47f1e1a2f8a784326b0e1eac8 | |
parent | e5276e9d703b992393332431925041b7fc55b44b (diff) |
Fix #210
-rw-r--r-- | rootston/output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rootston/output.c b/rootston/output.c index 1d5ef98b..d7aade3d 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -32,15 +32,14 @@ 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]; - wlr_matrix_translate(&translate_center, -width/2, -height/2, 0); + wlr_matrix_translate(&translate_center, -width / 2, -height / 2, 0); 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, |