From e0a33a9b3c8362b2f6e9dc10b2d516c669e23172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Sun, 12 Oct 2014 20:30:19 +0200 Subject: [PATCH 1/2] (Menu) Ticker line --- frontend/menu/disp/xmb.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/frontend/menu/disp/xmb.c b/frontend/menu/disp/xmb.c index ac1fab3e2c..f19696a4ee 100644 --- a/frontend/menu/disp/xmb.c +++ b/frontend/menu/disp/xmb.c @@ -411,7 +411,7 @@ static void xmb_populate_entries(void *data, const char *path, static void xmb_frame(void) { - int i; + int i, current; char title_msg[64]; size_t end; const char *dir = NULL; @@ -455,10 +455,12 @@ static void xmb_frame(void) gl->win_height - xmb->title_margin_top/2, 1, 1); end = file_list_get_size(driver.menu->selection_buf); + current = driver.menu->selection_ptr; for (i = 0; i < end; i++) { - char value[PATH_MAX], path_buf[PATH_MAX]; + char val_buf[PATH_MAX], path_buf[PATH_MAX]; + char name[256], value[256]; const char *path = NULL, *entry_label = NULL; unsigned type = 0, w = 0; xmb_node_t *node = NULL; @@ -469,7 +471,7 @@ static void xmb_frame(void) driver.menu->selection_buf, i); disp_set_label(&w, type, i, label, - value, sizeof(value), + val_buf, sizeof(val_buf), entry_label, path, path_buf, sizeof(path_buf)); @@ -480,12 +482,18 @@ static void xmb_frame(void) 0, node->zoom); - xmb_draw_text(path_buf, + menu_ticker_line(name, 35, g_extern.frame_count / 20, path_buf, + (i == current)); + + xmb_draw_text(name, xmb->x + xmb->margin_left + xmb->hspacing + xmb->label_margin_left, xmb->margin_top + node->y + xmb->label_margin_top, 1, node->alpha); + menu_ticker_line(value, 35, g_extern.frame_count / 20, val_buf, + (i == current)); + xmb_draw_text(value, xmb->x + xmb->margin_left + xmb->hspacing + xmb->label_margin_left + xmb->setting_margin_left, From 3f7af3d1643b03c0981ecf5b305f2e5dbeced7c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Sun, 12 Oct 2014 20:34:55 +0200 Subject: [PATCH 2/2] (Menu) Remove the unwanted vertical animation on screen switch --- frontend/menu/disp/xmb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/menu/disp/xmb.c b/frontend/menu/disp/xmb.c index f19696a4ee..0f148e958b 100644 --- a/frontend/menu/disp/xmb.c +++ b/frontend/menu/disp/xmb.c @@ -776,8 +776,6 @@ static void xmb_context_reset(void *data) static void xmb_navigation_clear(void *data) { (void)data; - - xmb_selection_pointer_changed(); } static void xmb_navigation_decrement(void *data)