Starting on bringing the overlay back to device-independent coordinates.

This commit is contained in:
Andrzej Kapolka 2014-09-08 13:36:02 -07:00
parent b2733873e1
commit dc396e5687
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ void ApplicationOverlay::renderOverlay(bool renderToTexture) {
glPushMatrix();
glLoadIdentity();
gluOrtho2D(0, glWidget->getDeviceWidth(), glWidget->getDeviceHeight(), 0);
gluOrtho2D(0, glWidget->width(), glWidget->height(), 0);
glDisable(GL_DEPTH_TEST);
glDisable(GL_LIGHTING);

View file

@ -43,7 +43,7 @@ TextRenderer::TextRenderer(const char* family, int pointSize, int weight, bool i
// double the font size for "Retina" displays
float ratio = QApplication::desktop()->windowHandle()->devicePixelRatio();
if (ratio != 1.0f) {
if (ratio != 1.0f && false) {
_font.setPointSize(_font.pointSize() * ratio);
_metrics = QFontMetrics(_font);
_effectThickness *= ratio;