]> git.mdlowis.com Git - proto/labwc.git/commit
Fix dynamic output based scaling for menu and SSD
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 29 May 2022 16:34:25 +0000 (18:34 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 29 May 2022 20:10:00 +0000 (22:10 +0200)
commite87aa19066e5dae6ddfe1f4c5d4537474083436a
treec5f980080d7b7e69430ec15351eb79b28a474ab0
parent78dc2ea7feb4e61b64dbc6c26b3de2bc30eb630a
Fix dynamic output based scaling for menu and SSD

wlr_scene_buffers need an additional wlr_scene_buffer_set_source_box()
to be scaled correctly by wlroots based on the output scale.

With this commit the buffers are now scaled correctly but, especially
on higher scale factors, may be a bit blurry.

In the future we likely want a dynamic font label generator based
on the maximal scale of all the outputs the specific buffer is currently on.

Some inspiration for that could be
https://github.com/Nefsen402/sway/blob/scene-graph/sway/sway_text_buffer.c

Fixes #348
src/menu/menu.c
src/ssd/ssd_part.c
src/ssd/ssd_titlebar.c