[vlc-commits] commit: qt4: use slower and better scaling on albumart-label ( Ilkka Ollakka )
git at videolan.org
git at videolan.org
Wed Jun 2 17:16:03 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Jun 2 18:12:58 2010 +0300| [0ba54f498eafa5b8c081ff37ecd65d791c3718e9] | committer: Ilkka Ollakka
qt4: use slower and better scaling on albumart-label
We could use QPixmapCache here too, but I don't think it speeds up it
any noticeable way, just makes code littlebit longer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ba54f498eafa5b8c081ff37ecd65d791c3718e9
---
modules/gui/qt4/components/interface_widgets.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index aec0812..f33bac1 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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
{
More information about the vlc-commits
mailing list