Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 12 files). Show all
Unified · Split
| @@ -82,7 +82,7 @@ glm::vec2 ControllerScriptingInterface::getViewportDimensions() const { · 81 unmodified lines | |||
| 82 | 82 | ||
| 83 | QVariant ControllerScriptingInterface::getRecommendedOverlayRect() const { | 83 | QVariant ControllerScriptingInterface::getRecommendedOverlayRect() const { |
| 84 | auto rect = qApp->getRecommendedOverlayRect(); | 84 | auto rect = qApp->getRecommendedOverlayRect(); |
| 85 | return vec4toVariant(vec4(rect.x, rect.y, rect.z, rect.w)); | 85 | return qRectToVariant(rect); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | controller::InputController* ControllerScriptingInterface::createInputController(const QString& deviceName, const QString& tracker) { | 88 | controller::InputController* ControllerScriptingInterface::createInputController(const QString& deviceName, const QString& tracker) { |