mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
Extends former behavior to include loading of icons if they are
specified as an absolute path. Fixes size selection for SVG (scalable) icons relying on whose nominal size read via gdk-pixbuf loader may not correctly indicate that they can be scaled to neatly fill the available scale e.g., symbolic icons from Adwaita specify a nominal size of 16x16.
This commit is contained in:
parent
aeeb99c5a3
commit
17dc5071fd
4 changed files with 50 additions and 23 deletions
|
|
@ -2,6 +2,6 @@
|
|||
#define _SWAYBAR_IMAGE_H
|
||||
#include <cairo.h>
|
||||
|
||||
cairo_surface_t *load_image(const char *path);
|
||||
cairo_surface_t *load_image(const char *path, int target_size, int scale);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue