forked from enlightenment/efl
fix: size < ret_size is always false. scale icons less
SVN revision: 57021
This commit is contained in:
parent
4f80504b6d
commit
8aed4736a0
|
@ -627,14 +627,15 @@ efreet_icon_lookup_icon(Efreet_Cache_Icon *icon, unsigned int size)
|
||||||
distance = efreet_icon_size_distance(icon->icons[i], size);
|
distance = efreet_icon_size_distance(icon->icons[i], size);
|
||||||
if (distance > minimal_distance) continue;
|
if (distance > minimal_distance) continue;
|
||||||
// prefer downsizing
|
// prefer downsizing
|
||||||
if ((distance == minimal_distance) && (size < ret_size)) continue;
|
if ((distance == minimal_distance) && (icon->icons[i]->normal < ret_size)) continue;
|
||||||
|
|
||||||
tmp = efreet_icon_lookup_path(icon->icons[i]);
|
tmp = efreet_icon_lookup_path(icon->icons[i]);
|
||||||
|
|
||||||
if (tmp)
|
if (tmp)
|
||||||
{
|
{
|
||||||
path = tmp;
|
path = tmp;
|
||||||
minimal_distance = distance;
|
minimal_distance = distance;
|
||||||
ret_size = size;
|
ret_size = icon->icons[i]->normal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue