Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -176,6 +176,10 @@ bool WindowScriptingInterface::isPointOnDesktopWindow(QVariant point) { · 175 unmodified lines | ||
| 176 | 176 | return offscreenUi->isPointOnDesktopWindow(point); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | +glm::vec2 WindowScriptingInterface::getDeviceSize() const { | |
| 180 | + return qApp->getDeviceSize(); | |
| 181 | +} | |
| 182 | + | |
| 179 | 183 | /// Makes sure that the reticle is visible, use this in blocking forms that require a reticle and |
| 180 | 184 | /// might be in same thread as a script that sets the reticle to invisible |
| 181 | 185 | void WindowScriptingInterface::ensureReticleVisible() const { |