From: Rodolfo García Peñas (kix) Date: Wed, 14 Nov 2012 18:00:22 +0000 (+0100) Subject: get_default_image resize image X-Git-Tag: wmaker-0.95.4~36 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/d8b92c979e16c527fbb1c1f0631eeca9aa8ad042 get_default_image resize image The function get_default_image, used to read the default image, now resizes it to the desired size. --- diff --git a/src/wdefaults.c b/src/wdefaults.c index a613a310..0e7d6cdb 100644 --- a/src/wdefaults.c +++ b/src/wdefaults.c @@ -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; }