Canvas GUI: preserve window size on reinit
This commit is contained in:
parent
c61583de5d
commit
9e2625d575
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue