mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 17:54:20 +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;
|
||||
auto window = _container->getPrimaryWidget();
|
||||
if (window) {
|
||||
result = toGlm(window->geometry().size() * window->devicePixelRatio());
|
||||
result = toGlm(window->geometry().size() * window->devicePixelRatioF());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue