mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 21:44:22 +01:00
Correct pushEvent (how difficult can it be???)
This commit is contained in:
parent
ab534595f0
commit
db774b9856
@ -265,8 +265,9 @@ void Gui::pushEvent(SDL_Event *ev)
|
|||||||
{
|
{
|
||||||
GuiView *cur_view = this->peekView();
|
GuiView *cur_view = this->peekView();
|
||||||
|
|
||||||
if (this->is_active || !cur_view)
|
if (!this->is_active || !cur_view)
|
||||||
cur_view->pushEvent(ev);
|
return;
|
||||||
|
cur_view->pushEvent(ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Gui::draw(SDL_Surface *where)
|
void Gui::draw(SDL_Surface *where)
|
||||||
|
Loading…
Reference in New Issue
Block a user