comparison layer/SpectrumLayer.cpp @ 1280:34394e8c2942 horizontal-scale

Merge
author Chris Cannam
date Wed, 02 May 2018 14:27:17 +0100
parents b6fc0970cd66 a04f1012fca2
children fc9d9f1103fa
comparison
equal deleted inserted replaced
1278:b6fc0970cd66 1280:34394e8c2942
658 658
659 double norm = 0.f; 659 double norm = 0.f;
660 (void)getYForValue(v, values[bin], norm); // don't need return value, need norm 660 (void)getYForValue(v, values[bin], norm); // don't need return value, need norm
661 661
662 paint.setPen(mapper.map(norm)); 662 paint.setPen(mapper.map(norm));
663 paint.drawLine(xorigin + x, 0, xorigin + x, 663 paint.drawLine(x, 0, x, v->getPaintHeight() - scaleh - pkh - 1);
664 v->getPaintHeight() - scaleh - pkh - 1);
665 } 664 }
666 665
667 paint.restore(); 666 paint.restore();
668 } 667 }
669 668