From 96314bb0ba77b0c770d2e9ef71900af090b9067c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Feb 2017 04:12:43 +0100 Subject: [PATCH] Add sublabels --- intl/msg_hash_us.h | 12 ++++++++++++ menu/cbs/menu_cbs_sublabel.c | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index c87b112a5e..b6109ceb43 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2437,3 +2437,15 @@ MSG_HASH( MENU_ENUM_SUBLABEL_VIDEO_SCALE_INTEGER, "Only scales video in integer steps. The base size depends on system-reported geometry and aspect ratio. If 'Force Aspect' is not set, X/Y will be integer scaled independently." ) +MSG_HASH( + MENU_ENUM_SUBLABEL_VIDEO_GPU_SCREENSHOT, + "Screenshots output of GPU shaded material if available." + ) +MSG_HASH( + MENU_ENUM_SUBLABEL_VIDEO_ROTATION, + "Forces a certain rotation of the screen. The rotation is added to rotations which the core sets." + ) +MSG_HASH( + MENU_ENUM_SUBLABEL_VIDEO_FORCE_SRGB_DISABLE, + "Forcibly disable sRGB FBO support. Some Intel OpenGL drivers on Windows have video problems with sRGB FBO support if this is enabled. Enabling this can work around it." + ) diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index be73ebe94f..6eee439428 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -142,6 +142,9 @@ default_sublabel_macro(action_bind_sublabel_video_font_size, MENU_ default_sublabel_macro(action_bind_sublabel_input_overlay_hide_in_menu, MENU_ENUM_SUBLABEL_INPUT_OVERLAY_HIDE_IN_MENU) default_sublabel_macro(action_bind_sublabel_content_collection_list, MENU_ENUM_SUBLABEL_CONTENT_COLLECTION_LIST) default_sublabel_macro(action_bind_sublabel_video_scale_integer, MENU_ENUM_SUBLABEL_VIDEO_SCALE_INTEGER) +default_sublabel_macro(action_bind_sublabel_video_gpu_screenshot, MENU_ENUM_SUBLABEL_VIDEO_GPU_SCREENSHOT) +default_sublabel_macro(action_bind_sublabel_video_rotation, MENU_ENUM_SUBLABEL_VIDEO_ROTATION) +default_sublabel_macro(action_bind_sublabel_video_force_srgb_enable, MENU_ENUM_SUBLABEL_VIDEO_FORCE_SRGB_DISABLE) static int action_bind_sublabel_cheevos_entry( file_list_t *list, @@ -203,6 +206,15 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_VIDEO_FORCE_SRGB_DISABLE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_force_srgb_enable); + break; + case MENU_ENUM_LABEL_VIDEO_ROTATION: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_rotation); + break; + case MENU_ENUM_LABEL_VIDEO_GPU_SCREENSHOT: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_gpu_screenshot); + break; case MENU_ENUM_LABEL_VIDEO_SCALE_INTEGER: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_scale_integer); break;