mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:09:52 +02:00
Replace call to window->devicePixelRatio() with devicePixelRatioF() to handle scales that are not multiples of 100%
This commit is contained in:
parent
4394c2e00b
commit
7a63ce4ca2
1 changed files with 1 additions and 1 deletions
|
@ -844,7 +844,7 @@ glm::uvec2 OpenGLDisplayPlugin::getSurfacePixels() const {
|
||||||
uvec2 result;
|
uvec2 result;
|
||||||
auto window = _container->getPrimaryWidget();
|
auto window = _container->getPrimaryWidget();
|
||||||
if (window) {
|
if (window) {
|
||||||
result = toGlm(window->geometry().size() * window->devicePixelRatio());
|
result = toGlm(window->geometry().size() * window->devicePixelRatioF());
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue