mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 03:00:24 +00:00
(Menu/disp) Get rid of unnecessary strlcpys in disp/menu code
This commit is contained in:
parent
b451958903
commit
140db3d689
@ -579,9 +579,6 @@ static void rgui_render(void)
|
||||
char type_str_buf[64];
|
||||
bool selected = i == driver.menu->selection_ptr;
|
||||
|
||||
strlcpy(entry_title_buf, path, sizeof(entry_title_buf));
|
||||
strlcpy(type_str_buf, type_str, sizeof(type_str_buf));
|
||||
|
||||
menu_ticker_line(entry_title_buf, RGUI_TERM_WIDTH - (w + 1 + 2),
|
||||
g_extern.frame_count / 15, path, selected);
|
||||
menu_ticker_line(type_str_buf, w, g_extern.frame_count / 15,
|
||||
|
@ -420,9 +420,6 @@ static void rmenu_render(void)
|
||||
char type_str_buf[64];
|
||||
bool selected = i == menu->selection_ptr;
|
||||
|
||||
strlcpy(entry_title_buf, path, sizeof(entry_title_buf));
|
||||
strlcpy(type_str_buf, type_str, sizeof(type_str_buf));
|
||||
|
||||
menu_ticker_line(entry_title_buf, RMENU_TERM_WIDTH - (w + 1 + 2), g_extern.frame_count / 15, path, selected);
|
||||
menu_ticker_line(type_str_buf, w, g_extern.frame_count / 15, type_str, selected);
|
||||
|
||||
|
@ -639,9 +639,6 @@ static void rmenu_xui_render(void)
|
||||
char type_str_buf[64];
|
||||
bool selected = i == driver.menu->selection_ptr;
|
||||
|
||||
strlcpy(entry_title_buf, path, sizeof(entry_title_buf));
|
||||
strlcpy(type_str_buf, type_str, sizeof(type_str_buf));
|
||||
|
||||
#if 0
|
||||
if ((type == MENU_FILE_PLAIN || type == MENU_FILE_DIRECTORY))
|
||||
menu_ticker_line(entry_title_buf, RXUI_TERM_WIDTH - (w + 1 + 2), g_extern.frame_count / 15, path, selected);
|
||||
|
Loading…
Reference in New Issue
Block a user