Move ui companion msg_queue_push call to runloop_msg

This commit is contained in:
twinaphex 2015-09-22 22:43:49 +02:00
parent f87154773d
commit c8b83de31c
2 changed files with 7 additions and 8 deletions

View File

@ -290,13 +290,5 @@ void menu_display_timedate(char *s, size_t len, unsigned time_mode)
void menu_display_msg_queue_push(const char *msg, unsigned prio, unsigned duration,
bool flush)
{
rarch_main_msg_queue_push(msg, prio, duration, flush);
if (ui_companion_is_on_foreground())
{
const ui_companion_driver_t *ui = ui_companion_get_ptr();
if (ui->msg_queue_push)
ui->msg_queue_push(msg, prio, duration, flush);
}
}

View File

@ -73,6 +73,13 @@ void rarch_main_msg_queue_push(const char *msg, unsigned prio, unsigned duration
msg_queue_clear(g_msg_queue);
msg_queue_push(g_msg_queue, msg, prio, duration);
if (ui_companion_is_on_foreground())
{
const ui_companion_driver_t *ui = ui_companion_get_ptr();
if (ui->msg_queue_push)
ui->msg_queue_push(msg, prio, duration, flush);
}
#ifdef HAVE_THREADS
slock_unlock(mq_lock);
#endif