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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/analyzers
From:       Mark Kretschmann <markey () web ! de>
Date:       2007-02-13 14:55:41
Message-ID: 1171378541.454355.4876.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 633219 by markey:

improve code


 M  +3 -4      blockanalyzer.cpp  
 M  +0 -1      blockanalyzer.h  


--- trunk/extragear/multimedia/amarok/src/analyzers/blockanalyzer.cpp #633218:633219
@@ -63,6 +63,8 @@
 void
 BlockAnalyzer::resizeEvent( QResizeEvent *e )
 {
+   DEBUG_BLOCK
+
    QWidget::resizeEvent( e );
 
    canvas()->resize( size() );
@@ -133,7 +135,7 @@
 void
 BlockAnalyzer::analyze( const Analyzer::Scope &s )
 {
-    m_scopeSource = s;
+    Analyzer::interpolate( s, m_scope );
     update();
 }
 
@@ -153,10 +155,7 @@
    // m_yscale looks similar to: { 0.7, 0.5, 0.25, 0.15, 0.1, 0 }
    // if it contains 6 elements there are 5 rows in the analyzer
 
-   const Analyzer::Scope s = m_scopeSource;
 
-   Analyzer::interpolate( s, m_scope );
-
    QPainter p( this );
  
    // Paint the background
--- trunk/extragear/multimedia/amarok/src/analyzers/blockanalyzer.h #633218:633219
@@ -54,7 +54,6 @@
     QPixmap m_barPixmap;
     QPixmap m_topBarPixmap;
     Scope m_scope;               //so we don't create a vector every frame
-    Scope m_scopeSource;
     std::vector<float> m_store;  //current bar heights
     std::vector<float> m_yscale;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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