comparison layer/TimeInstantLayer.cpp @ 1273:61418c112281

Adjust y-coord of text labels to accommodate larger scaled fonts
author Chris Cannam
date Tue, 24 Apr 2018 10:15:54 +0100
parents a34a2a25907c
children c39f2d439d59
comparison
equal deleted inserted replaced
1272:0ded54e94332 1273:61418c112281
456 int nx = v->getXForFrame(j->frame); 456 int nx = v->getXForFrame(j->frame);
457 if (nx >= x && nx - x - iw - 3 <= lw) good = false; 457 if (nx >= x && nx - x - iw - 3 <= lw) good = false;
458 } 458 }
459 459
460 if (good) { 460 if (good) {
461 PaintAssistant::drawVisibleText(v, paint, x + iw + 2, textY, p.label, PaintAssistant::OutlinedText); 461 PaintAssistant::drawVisibleText(v, paint,
462 // paint.drawText(x + iw + 2, textY, p.label); 462 x + iw + 2, textY,
463 p.label,
464 PaintAssistant::OutlinedText);
463 } 465 }
464 } 466 }
465 467
466 prevX = x; 468 prevX = x;
467 } 469 }