mirror of
https://github.com/overte-org/overte.git
synced 2025-08-14 21:51:50 +02:00
Starting on bringing the overlay back to device-independent coordinates.
This commit is contained in:
parent
b2733873e1
commit
dc396e5687
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue