# HG changeset patch # User Chris Cannam # Date 1153932487 0 # Node ID bd6e85b3d88b7f1255b7403c08c8c6de5f8b8087 # Parent 842bf484ee15fd88597fa5a831b27da6ded659a9 * Avoid note layer erasing notes as cursor passes over them * Correct y coord of notes on note layer diff -r 842bf484ee15 -r bd6e85b3d88b layer/NoteLayer.cpp --- 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); diff -r 842bf484ee15 -r bd6e85b3d88b layer/SpectrogramLayer.cpp --- 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;