aboutsummaryrefslogtreecommitdiff
path: root/rootston/output.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-04 11:08:06 +0100
committeremersion <contact@emersion.fr>2018-11-04 11:13:10 +0100
commitdec303bea6bdc31941c32074286521b742f932d4 (patch)
tree4e13043a2e5b60fdd6a3fcab2a1a4d938a3a92f9 /rootston/output.c
parent3e0a0f3c3acef811bc355af766b2a46c625fecd2 (diff)
surface: fix wlr_surface_get_effective_damage to give surface coords
Transforms were applied, but scale wasn't.
Diffstat (limited to 'rootston/output.c')
-rw-r--r--rootston/output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rootston/output.c b/rootston/output.c
index d7c5d821..674cda2d 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -700,8 +700,7 @@ static void damage_from_surface(struct wlr_surface *surface, int sx, int sy,
pixman_region32_init(&damage);
wlr_surface_get_effective_damage(surface, &damage);
- wlr_region_scale(&damage, &damage,
- wlr_output->scale / (float)surface->current.scale);
+ wlr_region_scale(&damage, &damage, wlr_output->scale);
if (ceil(wlr_output->scale) > surface->current.scale) {
// When scaling up a surface, it'll become blurry so we need to
// expand the damage region