changeset 90:7d06e7cf5d5a

* adjustments to facilitate debugging on win32, and some minor fixes
author Chris Cannam
date Fri, 05 May 2006 14:10:12 +0000
parents 803830f186ef
children ed01c1261b55
files layer/SpectrogramLayer.cpp layer/SpectrogramLayer.h
diffstat 2 files changed, 8 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp	Fri May 05 13:06:47 2006 +0000
+++ b/layer/SpectrogramLayer.cpp	Fri May 05 14:10:12 2006 +0000
@@ -715,7 +715,7 @@
     int distance = r - m_colourRotation;
 
     if (distance != 0) {
-	rotateCacheColourmap(-distance);
+	rotateColourmap(-distance);
 	m_colourRotation = r;
     }
     
@@ -755,7 +755,7 @@
     m_pixmapCacheInvalid = true;
     
     m_colourScheme = scheme;
-    setCacheColourmap();
+    setColourmap();
 
     m_mutex.unlock();
 
@@ -942,10 +942,8 @@
 }
 
 void
-SpectrogramLayer::setCacheColourmap()
+SpectrogramLayer::setColourmap()
 {
-    if (m_cacheInvalid || !m_cache) return;
-
     int formerRotation = m_colourRotation;
 
     if (m_colourScheme == BlackOnWhite) {
@@ -1015,12 +1013,12 @@
     }
 
     m_colourRotation = 0;
-    rotateCacheColourmap(m_colourRotation - formerRotation);
+    rotateColourmap(m_colourRotation - formerRotation);
     m_colourRotation = formerRotation;
 }
 
 void
-SpectrogramLayer::rotateCacheColourmap(int distance)
+SpectrogramLayer::rotateColourmap(int distance)
 {
     if (!m_cache) return;
 
@@ -1311,7 +1309,7 @@
                 (QString("%1").arg(getObjectExportId(&m_layer)),
                  MatrixFile::ReadOnly);
 
-	    m_layer.setCacheColourmap();
+	    m_layer.setColourmap();
 //!!!	    m_layer.m_writeCache->reset();
 
 	    // We don't need a lock when writing to or reading from
--- a/layer/SpectrogramLayer.h	Fri May 05 13:06:47 2006 +0000
+++ b/layer/SpectrogramLayer.h	Fri May 05 14:10:12 2006 +0000
@@ -272,8 +272,8 @@
     size_t m_lastFillExtent;
     bool m_exiting;
 
-    void setCacheColourmap();
-    void rotateCacheColourmap(int distance);
+    void setColourmap();
+    void rotateColourmap(int distance);
 
     void fillCacheColumn(int column,
 			 double *inputBuffer,