mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
surface: fix wlr_surface_get_effective_damage to give surface coords
Transforms were applied, but scale wasn't.
This commit is contained in:
parent
3e0a0f3c3a
commit
dec303bea6
3 changed files with 20 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue