mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 13:34: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();
|
||||
|
||||
if (this->is_active || !cur_view)
|
||||
cur_view->pushEvent(ev);
|
||||
if (!this->is_active || !cur_view)
|
||||
return;
|
||||
cur_view->pushEvent(ev);
|
||||
}
|
||||
|
||||
void Gui::draw(SDL_Surface *where)
|
||||
|
Loading…
Reference in New Issue
Block a user