mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 18:23:22 +02:00
Fix dpi scaling in getViewportDimensions
This commit is contained in:
parent
2828b65bea
commit
9b719273ab
1 changed files with 2 additions and 2 deletions
|
@ -280,8 +280,8 @@ glm::vec2 ControllerScriptingInterface::getViewportDimensions() const {
|
|||
const float dpiScaleY = NATIVE_DPI / glCanvas->logicalDpiY();
|
||||
#endif
|
||||
|
||||
const float width = glCanvas->width() / dpiScaleX;
|
||||
const float height = glCanvas->height() / dpiScaleY;
|
||||
const float width = glCanvas->width() * dpiScaleX;
|
||||
const float height = glCanvas->height() * dpiScaleY;
|
||||
|
||||
return glm::vec2(width, height);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue