From be3f0f9267f728069e7cafacf546ea68d9a7a40f Mon Sep 17 00:00:00 2001 From: radius Date: Sat, 7 May 2016 19:51:42 -0500 Subject: [PATCH] example implementation of using the menu driver to display the OSD, commented out --- menu/drivers/xmb.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 65377e2ba6..6f1f91f54f 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2066,10 +2066,19 @@ static void xmb_frame(void *data) xmb->margins.title.top, 1, 1, TEXT_ALIGN_LEFT, width, height); - if (menu_entries_get_core_title(title_msg, sizeof(title_msg)) == 0) - xmb_draw_text(xmb, title_msg, xmb->margins.title.left, - height - xmb->margins.title.bottom, 1, 1, TEXT_ALIGN_LEFT, - width, height); +/* uncomment to print the messages on the XMB status line + if (string_is_empty(runloop_msg_queue_pull())) + {*/ + if (menu_entries_get_core_title(title_msg, sizeof(title_msg)) == 0) + xmb_draw_text(xmb, title_msg, xmb->margins.title.left, + height - xmb->margins.title.bottom, 1, 1, TEXT_ALIGN_LEFT, + width, height); +/* } + else + xmb_draw_text(xmb, runloop_msg_queue_pull(), xmb->margins.title.left, + height - xmb->margins.title.bottom, 1, 1, TEXT_ALIGN_LEFT, + width, height); +*/ rotate_draw.matrix = &mymat; rotate_draw.rotation = 0;