aboutsummaryrefslogtreecommitdiff
path: root/rootston/output.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-14 21:18:34 +0100
committeremersion <contact@emersion.fr>2017-11-14 21:18:34 +0100
commitbb973ff27d5b735d2eb8ec620d7ea74e43eab301 (patch)
treeda2d7cad0a72c8288c781225fd4dc52ed6d56897 /rootston/output.c
parent2f44140f4afdab3231d215b913393e3d6a5e36d9 (diff)
Remove remaining buffer_{width,height} usage
Diffstat (limited to 'rootston/output.c')
-rw-r--r--rootston/output.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 2a39510b..cfab3756 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -39,9 +39,8 @@ static void render_surface(struct wlr_surface *surface,
struct roots_desktop *desktop, struct wlr_output *wlr_output,
struct timespec *when, double lx, double ly, float rotation) {
if (surface->texture->valid) {
- double surface_scale = surface->current->scale;
- double width = (double)surface->current->buffer_width / surface_scale;
- double height = (double)surface->current->buffer_height / surface_scale;
+ int width = surface->current->width;
+ int height = surface->current->height;
int render_width = width * wlr_output->scale;
int render_height = height * wlr_output->scale;
double ox = lx, oy = ly;