mirror of
https://github.com/labwc/labwc.git
synced 2025-11-09 13:30:01 -05:00
magnifier: scale/transform the magnifier
Before this commit, the magnifier wasn't scaled, and caused visual artifacts when the output is transformed.
This commit is contained in:
parent
9f53d7ed25
commit
6dc8e279ec
2 changed files with 47 additions and 16 deletions
|
|
@ -143,6 +143,13 @@ lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output,
|
|||
pixman_region32_init_rect(®ion,
|
||||
additional_damage.x, additional_damage.y,
|
||||
additional_damage.width, additional_damage.height);
|
||||
/*
|
||||
* Region passed to scene_output_damage() should have the same
|
||||
* scale as the output buffer but have a different transform.
|
||||
*/
|
||||
wlr_region_transform(®ion, ®ion, wlr_output->transform,
|
||||
wlr_output->width, wlr_output->height);
|
||||
|
||||
scene_output_damage(scene_output, ®ion);
|
||||
pixman_region32_fini(®ion);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue