comparison layer/SpectrogramLayer.cpp @ 1239:a496986aa61b

Fix #1792 measure tool crosshairs rendered in wrong colour. Also extend crosshairs over the no-man's-land at the left
author Chris Cannam
date Tue, 21 Feb 2017 11:12:07 +0000
parents 81dfe06a45c9
children b10bd0611d16
comparison
equal deleted inserted replaced
1238:4d0ca1ab4cd0 1239:a496986aa61b
1514 params.interpolate = 1514 params.interpolate =
1515 (smoothing == Preferences::SpectrogramInterpolated || 1515 (smoothing == Preferences::SpectrogramInterpolated ||
1516 smoothing == Preferences::SpectrogramZeroPaddedAndInterpolated); 1516 smoothing == Preferences::SpectrogramZeroPaddedAndInterpolated);
1517 1517
1518 m_renderers[viewId] = new Colour3DPlotRenderer(sources, params); 1518 m_renderers[viewId] = new Colour3DPlotRenderer(sources, params);
1519
1520 m_crosshairColour =
1521 ColourMapper(m_colourMap, 1.f, 255.f).getContrastingColour();
1519 } 1522 }
1520 1523
1521 return m_renderers[viewId]; 1524 return m_renderers[viewId];
1522 } 1525 }
1523 1526