]> git.sesse.net Git - vlc/commitdiff
qt4: use slower and better scaling on albumart-label
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 2 Jun 2010 15:12:58 +0000 (18:12 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 2 Jun 2010 15:15:00 +0000 (18:15 +0300)
We could use QPixmapCache here too, but I don't think it speeds up it
any noticeable way, just makes code littlebit longer.

modules/gui/qt4/components/interface_widgets.cpp

index aec0812c7e9c7360ecdfab3e4e33dd2be94eb615..f33bac1c21616dd8b5220874b1c3fab17b812f35 100644 (file)
@@ -593,7 +593,8 @@ void CoverArtLabel::showArtUpdate( const QString& url )
     if( !url.isEmpty() && pix.load( url ) )
     {
         pix = pix.scaled( maximumWidth(), maximumHeight(),
-                          Qt::KeepAspectRatioByExpanding );
+                          Qt::KeepAspectRatioByExpanding,
+                          Qt::SmoothTransformation );
     }
     else
     {