History

commit possible fix for testing

SamGondelman committed 10 years ago

Commit a52fab01 parent 1c188a21 file · +3 −5Browse files

Showing the changes to interface/src/ui/ApplicationOverlay.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ui/ApplicationOverlay.cpp+3−5
@@ -166,13 +166,11 @@ void ApplicationOverlay::renderRearView(RenderArgs* renderArgs) { · 165 unmodified lines
166166 batch.setViewTransform(Transform());
167167
168168 float screenRatio = ((float)qApp->getDevicePixelRatio());
169− float renderRatio = ((float)screenRatio * qApp->getRenderResolutionScale());
169+ float renderRatio = ((float)qApp->getRenderResolutionScale());
170170
171171 auto viewport = qApp->getMirrorViewRect();
172− glm::vec2 bottomLeft(viewport.left(), viewport.top() + viewport.height());
173− glm::vec2 topRight(viewport.left() + viewport.width(), viewport.top());
174− bottomLeft *= screenRatio;
175− topRight *= screenRatio;
172+ glm::vec2 bottomLeft(viewport.left(), viewport.top() + screenRatio * viewport.height());
173+ glm::vec2 topRight(viewport.left() + screenRatio * viewport.width(), viewport.top());
176174 glm::vec2 texCoordMinCorner(0.0f, 0.0f);
177175 glm::vec2 texCoordMaxCorner(viewport.width() * renderRatio / float(selfieTexture->getWidth()), viewport.height() * renderRatio / float(selfieTexture->getHeight()));
178176