oga_gfx: fix messages from not disappearing
This commit is contained in:
parent
5ff75cab0f
commit
71cbec9252
|
@ -452,6 +452,9 @@ static bool render_msg(oga_video_t* vid, const char* msg)
|
||||||
int dest_y = 0;
|
int dest_y = 0;
|
||||||
int dest_stride;
|
int dest_stride;
|
||||||
|
|
||||||
|
if (msg[0] == '\0')
|
||||||
|
return false;
|
||||||
|
|
||||||
if (strcmp(msg, vid->last_msg) == 0)
|
if (strcmp(msg, vid->last_msg) == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -567,7 +570,7 @@ static bool oga_gfx_frame(void *data, const void *frame, unsigned width,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg && msg[0] && vid->font)
|
if (msg && vid->font)
|
||||||
{
|
{
|
||||||
if (!render_msg(vid, msg))
|
if (!render_msg(vid, msg))
|
||||||
msg = NULL;
|
msg = NULL;
|
||||||
|
|
Loading…
Reference in New Issue