diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index e60a4e792..1c95ccc93 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -428,11 +428,11 @@ void OMW::Engine::createWindow(Settings::Manager& settings) osg::ref_ptr camera = mViewer->getCamera(); camera->setGraphicsContext(graphicsWindow); - camera->setViewport(0, 0, width, height); + camera->setViewport(0, 0, traits->width, traits->height); mViewer->realize(); - mViewer->getEventQueue()->getCurrentEventState()->setWindowRectangle(0, 0, width, height); + mViewer->getEventQueue()->getCurrentEventState()->setWindowRectangle(0, 0, traits->width, traits->height); } void OMW::Engine::setWindowIcon()