Commit 8ed622b6 authored by hybrid's avatar hybrid

Menu bug fix by CuteAlien.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@973 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 0812b449
......@@ -218,7 +218,7 @@ void CGUIMenu::recalculateSize()
//! returns the item highlight-area
core::rect<s32> CGUIMenu::getHRect(const SItem& i, const core::rect<s32>& absolute)
core::rect<s32> CGUIMenu::getHRect(const SItem& i, const core::rect<s32>& absolute) const
{
core::rect<s32> r = absolute;
r.UpperLeftCorner.X += i.PosY;
......@@ -227,7 +227,7 @@ core::rect<s32> CGUIMenu::getHRect(const SItem& i, const core::rect<s32>& absolu
}
//! Gets drawing rect of Item
core::rect<s32> CGUIMenu::getRect(const SItem& i, const core::rect<s32>& absolute)
core::rect<s32> CGUIMenu::getRect(const SItem& i, const core::rect<s32>& absolute) const
{
return getHRect(i, absolute);
}
......
......@@ -37,10 +37,10 @@ namespace gui
virtual void recalculateSize();
//! returns the item highlight-area
virtual core::rect<s32> getHRect(const SItem& i, const core::rect<s32>& absolute);
virtual core::rect<s32> getHRect(const SItem& i, const core::rect<s32>& absolute) const;
//! Gets drawing rect of Item
virtual core::rect<s32> getRect(const SItem& i, const core::rect<s32>& absolute);
virtual core::rect<s32> getRect(const SItem& i, const core::rect<s32>& absolute) const;
};
} // end namespace gui
......
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