mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 11:54:20 +02:00
Instead of returning the main window dimension (modulo the height of the menu bar) let s return the size of the actual 3d viewport widget
This commit is contained in:
parent
ee9d3d3ae1
commit
edbd354760
1 changed files with 2 additions and 2 deletions
|
@ -414,11 +414,11 @@ QString WindowScriptingInterface::protocolSignature() {
|
|||
}
|
||||
|
||||
int WindowScriptingInterface::getInnerWidth() {
|
||||
return qApp->getWindow()->geometry().width();
|
||||
return qApp->getPrimaryWidget()->geometry().width();
|
||||
}
|
||||
|
||||
int WindowScriptingInterface::getInnerHeight() {
|
||||
return qApp->getWindow()->geometry().height() - qApp->getPrimaryMenu()->geometry().height();
|
||||
return qApp->getPrimaryWidget()->geometry().height();
|
||||
}
|
||||
|
||||
glm::vec2 WindowScriptingInterface::getDeviceSize() const {
|
||||
|
|
Loading…
Reference in a new issue