Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 910:b48db6f1a7d2 cxx11
Nothing of consequence
author | Chris Cannam |
---|---|
date | Tue, 10 Mar 2015 17:31:14 +0000 |
parents | 4a578a360011 |
children | 36cddc3de023 4d54882bbf73 |
comparison
equal
deleted
inserted
replaced
909:251dd0abc7b7 | 910:b48db6f1a7d2 |
---|---|
734 double em = QFontMetrics(QFont()).height(); | 734 double em = QFontMetrics(QFont()).height(); |
735 ratio = em / baseEm; | 735 ratio = em / baseEm; |
736 } | 736 } |
737 | 737 |
738 int scaled = int(pixels * ratio + 0.5); | 738 int scaled = int(pixels * ratio + 0.5); |
739 cerr << "scaledSize: " << pixels << " -> " << scaled << " at ratio " << ratio << endl; | 739 // cerr << "scaledSize: " << pixels << " -> " << scaled << " at ratio " << ratio << endl; |
740 if (pixels != 0 && scaled == 0) scaled = 1; | 740 if (pixels != 0 && scaled == 0) scaled = 1; |
741 return scaled; | 741 return scaled; |
742 } | 742 } |