mirror of
https://github.com/swaywm/sway.git
synced 2024-11-04 23:43:14 +00:00
9ea99a5d36
render_background_image alters the scale that cairo uses. Depending on the image mode, resolution, and image size, this may cause the surface to be rendered increasingly smaller. By calling cairo_save and cairo_restore, any changes to the cairo settings by the function are not kept as a side effect. The surface that swaybg uses is also now cleared before rendering a frame. This is needed to avoid artifacts on resolution or scale changes with certain combinations of image modes, resolutions, and image sizes. This was also part of the increasingly smaller background visual since it made it so it was not obvious the region being rendered to was smaller and caused an increasing number of smaller images to be appear for each hotplug. |
||
---|---|---|
.. | ||
background-image.c | ||
cairo.c | ||
ipc-client.c | ||
list.c | ||
log.c | ||
meson.build | ||
pango.c | ||
readline.c | ||
stringop.c | ||
unicode.c | ||
util.c |