From d8b92c979e16c527fbb1c1f0631eeca9aa8ad042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 14 Nov 2012 19:00:22 +0100 Subject: [PATCH] get_default_image resize image The function get_default_image, used to read the default image, now resizes it to the desired size. --- src/wdefaults.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }