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