fixed assertion failure
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c603d48a06
commit
c26340a499
@ -2,6 +2,7 @@
|
||||
#include "gui/engine.hpp"
|
||||
#include "gui/screen.hpp"
|
||||
#include "gui/widget.hpp"
|
||||
#include "gui/state_manager.hpp"
|
||||
#include "io/file_manager.hpp"
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
@ -485,6 +486,8 @@ void Skin::drawGaugeFill(const core::rect< s32 > &rect, Widget* widget, bool foc
|
||||
|
||||
void Skin::draw2DRectangle (IGUIElement *element, const video::SColor &color, const core::rect< s32 > &rect, const core::rect< s32 > *clip)
|
||||
{
|
||||
if(StateManager::isGameState()) return; // ignore in game mode
|
||||
|
||||
const bool focused = GUIEngine::getGUIEnv()->hasFocus(element);
|
||||
const int id = element->getID();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user