Replaced dynamic_cast with irrlicht getType function (since
irrlicht on windows per default is not compiled with RTTI). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c4bcec281f
commit
0b98a1eaea
@ -926,7 +926,7 @@ void Skin::draw3DButtonPaneStandard (IGUIElement *element, const core::rect< s32
|
||||
|
||||
void Skin::draw3DSunkenPane (IGUIElement *element, video::SColor bgcolor, bool flat, bool fillBackGround, const core::rect< s32 > &rect, const core::rect< s32 > *clip)
|
||||
{
|
||||
if(dynamic_cast<IGUIEditBox*>(element) != NULL)
|
||||
if(element->getType()==gui::EGUIET_EDIT_BOX)
|
||||
{
|
||||
// TODO : make configurable in skin file
|
||||
GUIEngine::getDriver()->draw2DRectangle( SColor(100, 150, 150, 150), rect );
|
||||
|
Loading…
Reference in New Issue
Block a user