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-e03cc46cb475
master
bitplane 2007-05-25 20:23:12 +00:00
parent 55d4b390ea
commit a10b998a04
2 changed files with 5 additions and 5 deletions

View File

@ -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();
}
}

View File

@ -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();
}