summaryrefslogtreecommitdiff
path: root/library/qpedecoration_qws.cpp
Side-by-side diff
Diffstat (limited to 'library/qpedecoration_qws.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpedecoration_qws.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/qpedecoration_qws.cpp b/library/qpedecoration_qws.cpp
index 8b02de6..fa38180 100644
--- a/library/qpedecoration_qws.cpp
+++ b/library/qpedecoration_qws.cpp
@@ -110,7 +110,8 @@ public:
static QImage scaleButton( const QImage &img, int height )
{
- if ( img.height() != 0 && img.height() != height ) {
+ //ML: We don't want to scale if the difference is less than 4 pixels to prevent blurring
+ if ( img.height() != 0 && ::abs( img.height()-height ) > 4 ) {
return img.smoothScale( img.width()*height/img.height(), height );
} else {
return img;