[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.1/kdeplasma-addons/applets/frame
From:       Anne-Marie Mahfouf <annma () kde ! org>
Date:       2008-09-06 12:47:40
Message-ID: 1220705260.019421.8764.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 857793 by annma:

backport r857301: suppress unneeded resize which affects performance


 M  +2 -7      picture.cpp  


--- branches/KDE/4.1/kdeplasma-addons/applets/frame/picture.cpp #857792:857793
@@ -72,13 +72,8 @@
         if (tempImage.isNull()){
             m_picture = defaultPicture(i18nc("Error", "Error loading image"));
             return m_picture;
-        } else { // Load success! Scale the image if it is too big	    
-            if (tempImage.width() > m_maxDimension || tempImage.height() > m_maxDimension) {
-                m_picture = tempImage.scaled(m_maxDimension,m_maxDimension,
-                                             Qt::KeepAspectRatio,Qt::SmoothTransformation);
-            } else {
-                m_picture = tempImage;
-            }
+        } else { 
+            m_picture = tempImage;
             return m_picture;
         }
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic