[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:40 CEST 2010
vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Jun 2 18:12:58 2010 +0300| [6163266dd198e9ecb1f4f7ab3866119aebfb4700] | 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.
(cherry picked from commit 0ba54f498eafa5b8c081ff37ecd65d791c3718e9)
Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=6163266dd198e9ecb1f4f7ab3866119aebfb4700
---
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 1d6ce66..0566c16 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -587,7 +587,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