Mercurial > hg > svgui
diff view/View.cpp @ 1193:54e6be7ebe11 levelpanwidget
Some adjustments to make view elements clearer and more correctly sized, especially on hidpi (non-pixel-doubling) systems
author | Chris Cannam |
---|---|
date | Thu, 15 Dec 2016 15:34:33 +0000 |
parents | 52675a1f662c |
children | 6828735468c9 |
line wrap: on
line diff
--- a/view/View.cpp Thu Dec 15 15:12:44 2016 +0000 +++ b/view/View.cpp Thu Dec 15 15:34:33 2016 +0000 @@ -2100,11 +2100,15 @@ dx = p1 - 2 - dw; } - paint.drawText(sx, sy, startText); - paint.drawText(ex, ey, endText); - paint.drawText(dx, dy, durationText); + PaintAssistant::drawVisibleText(this, paint, sx, sy, startText, + PaintAssistant::OutlinedText); + PaintAssistant::drawVisibleText(this, paint, ex, ey, endText, + PaintAssistant::OutlinedText); + PaintAssistant::drawVisibleText(this, paint, dx, dy, durationText, + PaintAssistant::OutlinedText); if (durationBothEnds) { - paint.drawText(sx, dy, durationText); + PaintAssistant::drawVisibleText(this, paint, sx, dy, durationText, + PaintAssistant::OutlinedText); } } }