From f8a9b0a197258c27c00fc575675668088b132bd2 Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Wed, 5 Oct 2022 20:42:30 +0200 Subject: [PATCH] Combine bit setting --- menu/drivers/materialui.c | 3 +-- menu/drivers/ozone.c | 3 +-- menu/drivers/xmb.c | 3 +-- menu/menu_driver.c | 7 +++---- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 4034471fc6..4d5d86dce7 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -9404,8 +9404,7 @@ static int materialui_list_push(void *data, void *userdata, MENU_ENUM_LABEL_MENU_FILE_BROWSER_SETTINGS, MENU_SETTING_ACTION, 0, 0, NULL); - info->flags |= MD_FLAG_NEED_PUSH; - info->flags |= MD_FLAG_NEED_REFRESH; + info->flags |= MD_FLAG_NEED_PUSH | MD_FLAG_NEED_REFRESH; ret = 0; } break; diff --git a/menu/drivers/ozone.c b/menu/drivers/ozone.c index bcea9c0081..220f471ef2 100644 --- a/menu/drivers/ozone.c +++ b/menu/drivers/ozone.c @@ -8680,8 +8680,7 @@ static int ozone_list_push(void *data, void *userdata, MENU_SETTING_ACTION, 0, 0, NULL); } - info->flags |= MD_FLAG_NEED_PUSH; - info->flags |= MD_FLAG_NEED_REFRESH; + info->flags |= MD_FLAG_NEED_PUSH | MD_FLAG_NEED_REFRESH; ret = 0; } break; diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 8288058ad6..b1f5134fa9 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -7476,8 +7476,7 @@ static int xmb_list_push(void *data, void *userdata, MENU_ENUM_LABEL_MENU_FILE_BROWSER_SETTINGS, MENU_SETTING_ACTION, 0, 0, NULL); - info->flags |= MD_FLAG_NEED_PUSH; - info->flags |= MD_FLAG_NEED_REFRESH; + info->flags |= MD_FLAG_NEED_PUSH | MD_FLAG_NEED_REFRESH; ret = 0; break; case DISPLAYLIST_MAIN_MENU: diff --git a/menu/menu_driver.c b/menu/menu_driver.c index 3a89a99aaa..753ee15603 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -2365,10 +2365,9 @@ static bool menu_driver_displaylist_push_internal( if (string_is_empty(dir_playlist)) { menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list); - info->flags |= MD_FLAG_NEED_REFRESH; - info->flags |= MD_FLAG_NEED_PUSH_NO_PLAYLIST_ENTRIES; - info->flags |= MD_FLAG_NEED_PUSH; - + info->flags |= MD_FLAG_NEED_REFRESH + | MD_FLAG_NEED_PUSH_NO_PLAYLIST_ENTRIES + | MD_FLAG_NEED_PUSH; return true; }