From 10aaa163dbb9719e7887f9c0eaadc9b43a8fd102 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Feb 2017 21:54:01 +0100 Subject: [PATCH] Add sublabels --- intl/msg_hash_us.h | 8 ++++++++ menu/cbs/menu_cbs_sublabel.c | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 5da8e10f51..3c4147d3fb 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2928,3 +2928,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_CONTENT_SETTINGS, "Quickly access all relevant in-game settings.") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_INFORMATION, "View information pertaining to the application/core.") +MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_HEIGHT, + "Custom viewport height that is used if the Aspect Ratio is set to 'Custom'.") +MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_WIDTH, + "Custom viewport width that is used if the Aspect Ratio is set to 'Custom'.") +MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_X, + "Custom viewport offset used for defining the X-axis position of the viewport. These are ignored if 'Scaled Integer' is enabled, it will be automatically centered then.") +MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_Y, + "Custom viewport offset used for defining the Y-axis position of the viewport. These are ignored if 'Scaled Integer' is enabled, it will be automatically centered then.") diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index a9332e4ec0..3e0f42ed7d 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -307,6 +307,10 @@ default_sublabel_macro(action_bind_sublabel_cheat_file_load, default_sublabel_macro(action_bind_sublabel_cheat_file_save_as, MENU_ENUM_SUBLABEL_CHEAT_FILE_SAVE_AS) default_sublabel_macro(action_bind_sublabel_quick_menu, MENU_ENUM_SUBLABEL_CONTENT_SETTINGS) default_sublabel_macro(action_bind_sublabel_core_information, MENU_ENUM_SUBLABEL_CORE_INFORMATION) +default_sublabel_macro(action_bind_sublabel_video_viewport_custom_height, MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_HEIGHT) +default_sublabel_macro(action_bind_sublabel_video_viewport_custom_width, MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_WIDTH) +default_sublabel_macro(action_bind_sublabel_video_viewport_custom_x, MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_X) +default_sublabel_macro(action_bind_sublabel_video_viewport_custom_y, MENU_ENUM_SUBLABEL_VIDEO_VIEWPORT_CUSTOM_Y) static int action_bind_sublabel_cheevos_entry( file_list_t *list, @@ -368,6 +372,18 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_HEIGHT: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_viewport_custom_height); + break; + case MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_WIDTH: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_viewport_custom_width); + break; + case MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_X: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_viewport_custom_x); + break; + case MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_Y: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_viewport_custom_y); + break; case MENU_ENUM_LABEL_CORE_INFORMATION: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_core_information); break;