fixed a gui bug I introduced - resizing the device didn't pass to the environment or menus
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@652 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
55d4b390ea
commit
a10b998a04
|
@ -169,10 +169,10 @@ void CGUIEnvironment::drawAll()
|
|||
AbsoluteRect.LowerRightCorner.Y != dim.Height)
|
||||
{
|
||||
// resize gui environment
|
||||
RelativeRect.LowerRightCorner.X = Driver->getScreenSize().Width;
|
||||
RelativeRect.LowerRightCorner.Y = Driver->getScreenSize().Height;
|
||||
AbsoluteClippingRect = RelativeRect;
|
||||
AbsoluteRect = RelativeRect;
|
||||
DesiredRect.LowerRightCorner.X = Driver->getScreenSize().Width;
|
||||
DesiredRect.LowerRightCorner.Y = Driver->getScreenSize().Height;
|
||||
AbsoluteClippingRect = DesiredRect;
|
||||
AbsoluteRect = DesiredRect;
|
||||
updateAbsolutePosition();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -237,7 +237,7 @@ void CGUIMenu::closeAllSubMenus()
|
|||
void CGUIMenu::updateAbsolutePosition()
|
||||
{
|
||||
if (Parent)
|
||||
RelativeRect.LowerRightCorner.X = Parent->getAbsolutePosition().getWidth();
|
||||
DesiredRect.LowerRightCorner.X = Parent->getAbsolutePosition().getWidth();
|
||||
|
||||
IGUIElement::updateAbsolutePosition();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue