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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src
From:       Mark Kretschmann <markey () web ! de>
Date:       2006-02-04 17:09:27
Message-ID: 1139072967.008912.9445.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 505720 by markey:

Keep the original ratio when scaling the current track bitmap.



 M  +5 -5      playlistitem.cpp  


--- trunk/extragear/multimedia/amarok/src/playlistitem.cpp #505719:505720
@@ -575,11 +575,11 @@
 
                 // Left part
                 if( column == listView()->m_firstColumn ) {
-                    QImage tmpImage = currentTrackLeft.smoothScale( \
currentTrackLeft.width(), height() ); +                    QImage tmpImage = \
                currentTrackLeft.smoothScale( 1000, height(), QImage::ScaleMin );
                     KIconEffect::colorize( tmpImage, cg.highlight(), colorize1 );
                     KIconEffect::colorize( tmpImage, glowBase, colorize2 );
                     p.drawImage( 0, 0, tmpImage );
-                    leftOffset = currentTrackLeft.width();
+                    leftOffset = tmpImage.width();
                     margin += 6;
                 }
 
@@ -587,11 +587,11 @@
                 else
                 if( column == Playlist::instance()->mapToLogicalColumn( \
Playlist::instance()->numVisibleColumns() - 1 ) )  {
-                    QImage tmpImage = currentTrackRight.smoothScale( \
currentTrackRight.width(), height() ); +                    QImage tmpImage = \
                currentTrackRight.smoothScale( 1000, height(), QImage::ScaleMin );
                     KIconEffect::colorize( tmpImage, cg.highlight(), colorize1 );
                     KIconEffect::colorize( tmpImage, glowBase, colorize2 );
-                    p.drawImage( width - currentTrackRight.width(), 0, tmpImage );
-                    rightOffset = currentTrackRight.width();
+                    p.drawImage( width - tmpImage.width(), 0, tmpImage );
+                    rightOffset = tmpImage.width();
                     margin += 6;
                 }
 


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

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