Mercurial > hg > svgui
comparison view/ViewManager.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 | 646e713a4632 |
comparison
equal
deleted
inserted
replaced
1272:0ded54e94332 | 1273:61418c112281 |
---|---|
808 SVDEBUG << "ViewManager::scalePixelSize: ratio is " << ratio | 808 SVDEBUG << "ViewManager::scalePixelSize: ratio is " << ratio |
809 << " (em = " << em << ")" << endl; | 809 << " (em = " << em << ")" << endl; |
810 } | 810 } |
811 | 811 |
812 int scaled = int(pixels * ratio + 0.5); | 812 int scaled = int(pixels * ratio + 0.5); |
813 // cerr << "scaledSize: " << pixels << " -> " << scaled << " at ratio " << ratio << endl; | 813 // SVDEBUG << "scaledSize: " << pixels << " -> " << scaled << " at ratio " << ratio << endl; |
814 if (pixels != 0 && scaled == 0) scaled = 1; | 814 if (pixels != 0 && scaled == 0) scaled = 1; |
815 return scaled; | 815 return scaled; |
816 } | 816 } |
817 | 817 |