1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +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:
Rodolfo García Peñas (kix)
2012-11-14 19:00:22 +01:00
committed by Carlos R. Mafra
parent 78ff715d39
commit d8b92c979e

View File

@@ -466,6 +466,10 @@ RImage *get_default_image(WScreen *scr)
if (!image) if (!image)
wwarning(_("could not find default icon \"%s\""), path); 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; return image;
} }