summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorHannes Janetzek <hannes.janetzek@gmail.com>2011-02-14 14:28:21 +0000
committerHannes Janetzek <hannes.janetzek@gmail.com>2011-02-14 14:28:21 +0000
commit8aed4736a0e5a0a0310f881570004b9592060265 (patch)
tree4dc60f29229cf4c1a5aba60db4cc7fc74efe7607 /legacy/efreet
parent4f80504b6dd7a64fa7931bd399343263e5ed5d51 (diff)
fix: size < ret_size is always false. scale icons less
SVN revision: 57021
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_icon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/legacy/efreet/src/lib/efreet_icon.c b/legacy/efreet/src/lib/efreet_icon.c
index 6b8849dfe4..3ce16746f7 100644
--- a/legacy/efreet/src/lib/efreet_icon.c
+++ b/legacy/efreet/src/lib/efreet_icon.c
@@ -627,14 +627,15 @@ efreet_icon_lookup_icon(Efreet_Cache_Icon *icon, unsigned int size)
627 distance = efreet_icon_size_distance(icon->icons[i], size); 627 distance = efreet_icon_size_distance(icon->icons[i], size);
628 if (distance > minimal_distance) continue; 628 if (distance > minimal_distance) continue;
629 // prefer downsizing 629 // prefer downsizing
630 if ((distance == minimal_distance) && (size < ret_size)) continue; 630 if ((distance == minimal_distance) && (icon->icons[i]->normal < ret_size)) continue;
631 631
632 tmp = efreet_icon_lookup_path(icon->icons[i]); 632 tmp = efreet_icon_lookup_path(icon->icons[i]);
633
633 if (tmp) 634 if (tmp)
634 { 635 {
635 path = tmp; 636 path = tmp;
636 minimal_distance = distance; 637 minimal_distance = distance;
637 ret_size = size; 638 ret_size = icon->icons[i]->normal;
638 } 639 }
639 } 640 }
640 641