mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 04:08:13 +02:00
Fix the spectator camera
This commit is contained in:
parent
d37e9af7d4
commit
665bd6825f
1 changed files with 2 additions and 2 deletions
|
@ -396,11 +396,11 @@ QString WindowScriptingInterface::protocolSignature() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int WindowScriptingInterface::getInnerWidth() {
|
int WindowScriptingInterface::getInnerWidth() {
|
||||||
return qApp->getDeviceSize().x;
|
return qApp->getWindow()->geometry().width();
|
||||||
}
|
}
|
||||||
|
|
||||||
int WindowScriptingInterface::getInnerHeight() {
|
int WindowScriptingInterface::getInnerHeight() {
|
||||||
return qApp->getDeviceSize().y;
|
return qApp->getWindow()->geometry().height() - qApp->getPrimaryMenu()->geometry().height();
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec2 WindowScriptingInterface::getDeviceSize() const {
|
glm::vec2 WindowScriptingInterface::getDeviceSize() const {
|
||||||
|
|
Loading…
Reference in a new issue