changeset 348:0093f351641c

* add splash screen
author Chris Cannam
date Wed, 23 Jan 2008 11:38:34 +0000
parents d3ee7524d39b
children 369a197737c7
files layer/Colour3DPlotLayer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp	Mon Jan 14 18:26:06 2008 +0000
+++ b/layer/Colour3DPlotLayer.cpp	Wed Jan 23 11:38:34 2008 +0000
@@ -583,7 +583,7 @@
               sx1 < 0 ? 0 : sx1);
 
     if (int(m_model->getHeight()) >= v->height() ||
-        int(modelResolution) < v->getZoomLevel() / 2) {
+        int(modelResolution * m_model->getSampleRate()) < v->getZoomLevel() / 2) {
 #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT
         std::cerr << "Colour3DPlotLayer::paint: height = "<< m_model->getHeight() << ", resolution = " << modelResolution << ", model rate = " << m_model->getSampleRate() << ", calling paintDense" << std::endl;
 #endif