Mercurial > hg > svgui
changeset 124:bd6e85b3d88b
* Avoid note layer erasing notes as cursor passes over them
* Correct y coord of notes on note layer
author | Chris Cannam |
---|---|
date | Wed, 26 Jul 2006 16:48:07 +0000 |
parents | 842bf484ee15 |
children | 999ae0f7d10c |
files | layer/NoteLayer.cpp layer/SpectrogramLayer.cpp |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/NoteLayer.cpp Wed Jul 26 15:32:10 2006 +0000 +++ b/layer/NoteLayer.cpp Wed Jul 26 16:48:07 2006 +0000 @@ -634,7 +634,7 @@ } } - paint.drawRect(x, y - h, w, h); + paint.drawRect(x, y - h/2, w, h); /// if (p.label != "") { /// paint.drawText(x + 5, y - paint.fontMetrics().height() + paint.fontMetrics().ascent(), p.label);
--- a/layer/SpectrogramLayer.cpp Wed Jul 26 15:32:10 2006 +0000 +++ b/layer/SpectrogramLayer.cpp Wed Jul 26 16:48:07 2006 +0000 @@ -1647,7 +1647,7 @@ v->setLightBackground(false); } - Profiler profiler("SpectrogramLayer::paint", true); +// Profiler profiler("SpectrogramLayer::paint", true); #ifdef DEBUG_SPECTROGRAM_REPAINT std::cerr << "SpectrogramLayer::paint(): m_model is " << m_model << ", zoom level is " << v->getZoomLevel() << ", m_updateTimer " << m_updateTimer << std::endl;