comparison layer/SpectrumLayer.cpp @ 1251:9e1559b08f0d

Fix a couple of compiler warnings
author Chris Cannam
date Tue, 28 Feb 2017 14:47:13 +0000
parents 4d0ca1ab4cd0
children 5a10e9d924d4
comparison
equal deleted inserted replaced
1250:c49a48fcc364 1251:9e1559b08f0d
413 413
414 ColourMapper mapper(m_colourMap, 0, 1); 414 ColourMapper mapper(m_colourMap, 0, 1);
415 paint.setPen(mapper.getContrastingColour()); 415 paint.setPen(mapper.getContrastingColour());
416 416
417 int xorigin = m_xorigins[v->getId()]; 417 int xorigin = m_xorigins[v->getId()];
418 int w = v->getPaintWidth() - xorigin - 1;
419
420 paint.drawLine(xorigin, cursorPos.y(), v->getPaintWidth(), cursorPos.y()); 418 paint.drawLine(xorigin, cursorPos.y(), v->getPaintWidth(), cursorPos.y());
421 paint.drawLine(cursorPos.x(), cursorPos.y(), cursorPos.x(), v->getPaintHeight()); 419 paint.drawLine(cursorPos.x(), cursorPos.y(), cursorPos.x(), v->getPaintHeight());
422 420
423 double fundamental = getFrequencyForX(v, cursorPos.x()); 421 double fundamental = getFrequencyForX(v, cursorPos.x());
424 422