surface: fix wlr_surface_get_effective_damage to give surface coords

Transforms were applied, but scale wasn't.
This commit is contained in:
emersion 2018-11-04 11:08:06 +01:00
parent 3e0a0f3c3a
commit dec303bea6
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 20 additions and 20 deletions

View file

@ -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