# HG changeset patch # User Chris Cannam # Date 1201088314 0 # Node ID 0093f351641cf9696eef684541f97c41d7bd5d4d # Parent d3ee7524d39b09b342e0783146bfd17992b1b2f6 * add splash screen diff -r d3ee7524d39b -r 0093f351641c layer/Colour3DPlotLayer.cpp --- 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