vlc | branch: master | Ilkka Ollakka <[email protected]> | Wed Oct 19 18:41:20 2011 +0300| [0e6ed51e0691978e62358530bf13d1cf89cdd5c6] | committer: Ilkka Ollakka
Qt4: load coverart properly under selector We don't define maximumWidth for that anymore, so there was this 'QImage: out of memory, returning null' message and no albumart on side. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e6ed51e0691978e62358530bf13d1cf89cdd5c6 --- modules/gui/qt4/components/interface_widgets.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index 47c1f60..12e9f17 100644 --- a/modules/gui/qt4/components/interface_widgets.cpp +++ b/modules/gui/qt4/components/interface_widgets.cpp @@ -496,7 +496,7 @@ void CoverArtLabel::showArtUpdate( const QString& url ) QPixmap pix; if( !url.isEmpty() && pix.load( url ) ) { - pix = pix.scaled( maximumWidth(), maximumHeight(), + pix = pix.scaled( minimumWidth(), maximumHeight(), Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation ); } _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
