>From c2a8bcb9447de353a71b443b7e03b03775acabbc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
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
resize 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 a613a31..0e7d6cd 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;
 }
 
-- 
1.7.10.4

-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
>From c2a8bcb9447de353a71b443b7e03b03775acabbc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
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
resize 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 a613a31..0e7d6cd 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;
 }
 
-- 
1.7.10.4

Reply via email to