Commit a10b998a authored by bitplane's avatar bitplane

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
parent 55d4b390
...@@ -169,10 +169,10 @@ void CGUIEnvironment::drawAll() ...@@ -169,10 +169,10 @@ void CGUIEnvironment::drawAll()
AbsoluteRect.LowerRightCorner.Y != dim.Height) AbsoluteRect.LowerRightCorner.Y != dim.Height)
{ {
// resize gui environment // resize gui environment
RelativeRect.LowerRightCorner.X = Driver->getScreenSize().Width; DesiredRect.LowerRightCorner.X = Driver->getScreenSize().Width;
RelativeRect.LowerRightCorner.Y = Driver->getScreenSize().Height; DesiredRect.LowerRightCorner.Y = Driver->getScreenSize().Height;
AbsoluteClippingRect = RelativeRect; AbsoluteClippingRect = DesiredRect;
AbsoluteRect = RelativeRect; AbsoluteRect = DesiredRect;
updateAbsolutePosition(); updateAbsolutePosition();
} }
} }
......
...@@ -237,7 +237,7 @@ void CGUIMenu::closeAllSubMenus() ...@@ -237,7 +237,7 @@ void CGUIMenu::closeAllSubMenus()
void CGUIMenu::updateAbsolutePosition() void CGUIMenu::updateAbsolutePosition()
{ {
if (Parent) if (Parent)
RelativeRect.LowerRightCorner.X = Parent->getAbsolutePosition().getWidth(); DesiredRect.LowerRightCorner.X = Parent->getAbsolutePosition().getWidth();
IGUIElement::updateAbsolutePosition(); IGUIElement::updateAbsolutePosition();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment