Make units more finegrained

It's always if (ratio < n) { return size * (ratio - 0.5); } but with the
"< 3.0" condition that was not the case.

REVIEW: 122644
This commit is contained in:
Kai Uwe Broulik 2015-02-20 12:28:53 +01:00
parent a8edd6fd2c
commit ffcb5c8046

View File

@ -158,6 +158,8 @@ int Units::devicePixelIconSize(const int size) const
} else if (ratio < 2.5) { } else if (ratio < 2.5) {
return size * 2.0; return size * 2.0;
} else if (ratio < 3.0) { } else if (ratio < 3.0) {
return size * 2.5;
} else if (ratio < 3.5) {
return size * 3.0; return size * 3.0;
} else { } else {
return size * ratio; return size * ratio;