(XMB) Small optimizations
This commit is contained in:
parent
1808c6de57
commit
39f1441b7c
|
@ -1095,6 +1095,7 @@ static void xmb_selection_pointer_changed(
|
||||||
menu_list_t *menu_list = NULL;
|
menu_list_t *menu_list = NULL;
|
||||||
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
||||||
size_t selection = menu_navigation_get_selection();
|
size_t selection = menu_navigation_get_selection();
|
||||||
|
const char *thumb_ident = xmb_thumbnails_ident();
|
||||||
|
|
||||||
menu_entries_ctl(MENU_ENTRIES_CTL_LIST_GET, &menu_list);
|
menu_entries_ctl(MENU_ENTRIES_CTL_LIST_GET, &menu_list);
|
||||||
|
|
||||||
|
@ -1146,7 +1147,7 @@ static void xmb_selection_pointer_changed(
|
||||||
ia = xmb->items.active.alpha;
|
ia = xmb->items.active.alpha;
|
||||||
iz = xmb->items.active.zoom;
|
iz = xmb->items.active.zoom;
|
||||||
|
|
||||||
if (!string_is_equal(xmb_thumbnails_ident(),
|
if (!string_is_equal(thumb_ident,
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)))
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)))
|
||||||
{
|
{
|
||||||
if ((xmb_list > XMB_SYSTEM_TAB_SETTINGS && depth == 1) ||
|
if ((xmb_list > XMB_SYSTEM_TAB_SETTINGS && depth == 1) ||
|
||||||
|
@ -2172,6 +2173,7 @@ static void xmb_draw_items(
|
||||||
xmb_node_t *core_node = NULL;
|
xmb_node_t *core_node = NULL;
|
||||||
size_t end = 0;
|
size_t end = 0;
|
||||||
uint64_t frame_count = xmb->frame_count;
|
uint64_t frame_count = xmb->frame_count;
|
||||||
|
const char *thumb_ident = xmb_thumbnails_ident();
|
||||||
|
|
||||||
if (!list || !list->size)
|
if (!list || !list->size)
|
||||||
return;
|
return;
|
||||||
|
@ -2294,8 +2296,7 @@ static void xmb_draw_items(
|
||||||
{
|
{
|
||||||
if (xmb->savestate_thumbnail ||
|
if (xmb->savestate_thumbnail ||
|
||||||
(!string_is_equal
|
(!string_is_equal
|
||||||
(
|
(thumb_ident,
|
||||||
xmb_thumbnails_ident(),
|
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF))
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF))
|
||||||
&& xmb->thumbnail)
|
&& xmb->thumbnail)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue