mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 03:19:24 +01:00
Remove text when no message is active
This commit is contained in:
parent
117d652737
commit
93ce6f7292
@ -39,11 +39,16 @@ void StatusBar::timeoutCallback()
|
||||
static const char *text[2];
|
||||
|
||||
this->cur_message = this->dequeueMessage();
|
||||
if (this->cur_message)
|
||||
Gui::gui->timerController->arm(this, 500);
|
||||
text[0] = this->cur_message;
|
||||
text[1] = NULL;
|
||||
this->setText(text);
|
||||
|
||||
if (this->cur_message)
|
||||
{
|
||||
Gui::gui->timerController->arm(this, 500);
|
||||
this->setText(text);
|
||||
}
|
||||
else
|
||||
this->setText(NULL);
|
||||
}
|
||||
|
||||
void StatusBar::draw(SDL_Surface *where)
|
||||
|
Loading…
Reference in New Issue
Block a user