aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
Diffstat (limited to 'rootston')
-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