1
0
Fork 0

Canvas GUI: preserve window size on reinit

This commit is contained in:
Thomas Geymayer 2013-06-21 17:42:16 +02:00
parent c61583de5d
commit 9e2625d575

View file

@ -114,6 +114,10 @@ GUIMgr::GUIMgr():
_width = _height = -1;
// Do not change values on reinit
_width.node()->setAttribute(SGPropertyNode::PRESERVE, true);
_height.node()->setAttribute(SGPropertyNode::PRESERVE, true);
osg::Camera* camera =
flightgear::getGUICamera( flightgear::CameraGroup::getDefault() );
assert(camera);