From 19c7a99197e134b1d649899e24fbda9161436e94 Mon Sep 17 00:00:00 2001 From: kojima Date: Sun, 17 Oct 2004 05:22:24 +0000 Subject: [PATCH] only scale down icons (not up) --- src/switchpanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switchpanel.c b/src/switchpanel.c index 83ce014d..84ff2b59 100644 --- a/src/switchpanel.c +++ b/src/switchpanel.c @@ -194,7 +194,7 @@ static void addIconForWindow(WSwitchPanel *panel, WWindow *wwin, int iconWidth) if (!image && panel->defIcon) image= RRetainImage(panel->defIcon); - if (image && (abs(image->width - iconWidth) > 2 || abs(image->height - iconWidth) > 2)) { + if (image && ((image->width - iconWidth) > 2 || (image->height - iconWidth) > 2)) { RImage *nimage; nimage= RScaleImage(image, iconWidth, (image->height * iconWidth / image->width)); RReleaseImage(image); -- 2.11.4.GIT