Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 11 files). Show all
Unified · Split
| @@ -257,7 +257,7 @@ void ControllerScriptingInterface::releaseJoystick(int joystickIndex) { · 256 unmodified lines | ||
| 257 | 257 | |
| 258 | 258 | glm::vec2 ControllerScriptingInterface::getViewportDimensions() const { |
| 259 | 259 | GLCanvas* widget = Application::getInstance()->getGLWidget(); |
| 260 | − return glm::vec2(widget->getDeviceWidth(), widget->getDeviceHeight()); | |
| 260 | + return glm::vec2(widget->width(), widget->height()); | |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | 263 | AbstractInputController* ControllerScriptingInterface::createInputController(const QString& deviceName, const QString& tracker) { |