Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.cpp @ 348:0093f351641c
* add splash screen
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2008 11:38:34 +0000 |
parents | d3ee7524d39b |
children | b548a36f7633 |
comparison
equal
deleted
inserted
replaced
347:d3ee7524d39b | 348:0093f351641c |
---|---|
581 if (sx0 > 0) --sx0; | 581 if (sx0 > 0) --sx0; |
582 fillCache(sx0 < 0 ? 0 : sx0, | 582 fillCache(sx0 < 0 ? 0 : sx0, |
583 sx1 < 0 ? 0 : sx1); | 583 sx1 < 0 ? 0 : sx1); |
584 | 584 |
585 if (int(m_model->getHeight()) >= v->height() || | 585 if (int(m_model->getHeight()) >= v->height() || |
586 int(modelResolution) < v->getZoomLevel() / 2) { | 586 int(modelResolution * m_model->getSampleRate()) < v->getZoomLevel() / 2) { |
587 #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT | 587 #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT |
588 std::cerr << "Colour3DPlotLayer::paint: height = "<< m_model->getHeight() << ", resolution = " << modelResolution << ", model rate = " << m_model->getSampleRate() << ", calling paintDense" << std::endl; | 588 std::cerr << "Colour3DPlotLayer::paint: height = "<< m_model->getHeight() << ", resolution = " << modelResolution << ", model rate = " << m_model->getSampleRate() << ", calling paintDense" << std::endl; |
589 #endif | 589 #endif |
590 paintDense(v, paint, rect); | 590 paintDense(v, paint, rect); |
591 return; | 591 return; |