mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
get_default_image resize image
The function get_default_image, used to read the default image, now resizes it to the desired size.
This commit is contained in:
committed by
Carlos R. Mafra
parent
78ff715d39
commit
d8b92c979e
@@ -466,6 +466,10 @@ RImage *get_default_image(WScreen *scr)
|
||||
if (!image)
|
||||
wwarning(_("could not find default icon \"%s\""), path);
|
||||
|
||||
/* Resize the icon to the wPreferences.icon_size size
|
||||
* usually this function will return early, because size is right */
|
||||
image = wIconValidateIconSize(image, wPreferences.icon_size);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user