Add Monochrome Jagged

This commit is contained in:
lasers 2016-10-30 17:14:13 -05:00
parent 60abe24608
commit 8797dfbee1
8 changed files with 48 additions and 32 deletions

View File

@ -605,7 +605,7 @@ int menu_hash_get_help_chs_enum(enum msg_hash_enums msg, char *s, size_t len)
{ {
/* Work around C89 limitations */ /* Work around C89 limitations */
char u[501]; char u[501];
const char * t = const char * t =
"RetroArch relies on an unique form of\n" "RetroArch relies on an unique form of\n"
"audio/video synchronization where it needs to be\n" "audio/video synchronization where it needs to be\n"
"calibrated against the refresh rate of your\n" "calibrated against the refresh rate of your\n"
@ -3911,6 +3911,8 @@ const char *msg_hash_to_str_chs(enum msg_hash_enums msg)
return "菜单Shader管线"; return "菜单Shader管线";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME:
return "Monochrome"; return "Monochrome";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME_JAGGED:
return "Monochrome Jagged";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI:
return "FlatUI"; return "FlatUI";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE:
@ -4602,7 +4604,7 @@ const char *msg_hash_to_str_chs(enum msg_hash_enums msg)
case MENU_ENUM_LABEL_VALUE_LANG_ESPERANTO: case MENU_ENUM_LABEL_VALUE_LANG_ESPERANTO:
return "世界语"; return "世界语";
case MENU_ENUM_LABEL_VALUE_LANG_VIETNAMESE: case MENU_ENUM_LABEL_VALUE_LANG_VIETNAMESE:
return "越南语"; return "越南语";
case MENU_ENUM_LABEL_VALUE_LEFT_ANALOG: case MENU_ENUM_LABEL_VALUE_LEFT_ANALOG:
return "左侧摇杆"; return "左侧摇杆";
case MENU_ENUM_LABEL_VALUE_RIGHT_ANALOG: case MENU_ENUM_LABEL_VALUE_RIGHT_ANALOG:

View File

@ -137,7 +137,7 @@ int menu_hash_get_help_jp_enum(enum msg_hash_enums msg, char *s, size_t len)
"Complete by toggling eject again."); "Complete by toggling eject again.");
break; break;
case RARCH_GRAB_MOUSE_TOGGLE: case RARCH_GRAB_MOUSE_TOGGLE:
snprintf(s, len, snprintf(s, len,
"Toggles mouse grab. \n" "Toggles mouse grab. \n"
" \n" " \n"
"When mouse is grabbed, RetroArch hides the \n" "When mouse is grabbed, RetroArch hides the \n"
@ -1482,7 +1482,7 @@ int menu_hash_get_help_jp_enum(enum msg_hash_enums msg, char *s, size_t len)
" Possible values are [0.0, 1.0]."); " Possible values are [0.0, 1.0].");
break; break;
case MENU_ENUM_LABEL_INPUT_TURBO_PERIOD: case MENU_ENUM_LABEL_INPUT_TURBO_PERIOD:
snprintf(s, len, snprintf(s, len,
"Turbo period.\n" "Turbo period.\n"
" \n" " \n"
"Describes the period of which turbo-enabled\n" "Describes the period of which turbo-enabled\n"
@ -1492,7 +1492,7 @@ int menu_hash_get_help_jp_enum(enum msg_hash_enums msg, char *s, size_t len)
); );
break; break;
case MENU_ENUM_LABEL_INPUT_DUTY_CYCLE: case MENU_ENUM_LABEL_INPUT_DUTY_CYCLE:
snprintf(s, len, snprintf(s, len,
"Duty cycle.\n" "Duty cycle.\n"
" \n" " \n"
"Describes how long the period of a turbo-enabled\n" "Describes how long the period of a turbo-enabled\n"
@ -3941,6 +3941,8 @@ const char *msg_hash_to_str_jp(enum msg_hash_enums msg)
return "メニューのシェーダーパイプライン"; return "メニューのシェーダーパイプライン";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME:
return "モノクローム"; return "モノクローム";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME_JAGGED:
return "モノクローム Jagged";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI:
return "フラットUI"; return "フラットUI";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE:

View File

@ -3943,6 +3943,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
return "Menu Shader Pipeline"; return "Menu Shader Pipeline";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME:
return "Monochrome"; return "Monochrome";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME_JAGGED:
return "Monochrome Jagged";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI:
return "FlatUI"; return "FlatUI";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE:

View File

@ -626,7 +626,7 @@ int menu_hash_get_help_vn_enum(enum msg_hash_enums msg, char *s, size_t len)
{ {
/* Work around C89 limitations */ /* Work around C89 limitations */
char u[501]; char u[501];
const char * t = const char * t =
"RetroArch relies on an unique form of\n" "RetroArch relies on an unique form of\n"
"audio/video synchronization where it needs to be\n" "audio/video synchronization where it needs to be\n"
"calibrated against the refresh rate of your\n" "calibrated against the refresh rate of your\n"
@ -3943,6 +3943,8 @@ const char *msg_hash_to_str_vn(enum msg_hash_enums msg)
return "Menu Shader Pipeline"; return "Menu Shader Pipeline";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME:
return "Monochrome"; return "Monochrome";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME_JAGGED:
return "Monochrome Jagged";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI:
return "FlatUI"; return "FlatUI";
case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE: case MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE:

View File

@ -216,12 +216,12 @@ static void menu_action_setting_disp_set_label_pipeline(
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF), len); strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF), len);
break; break;
case XMB_SHADER_PIPELINE_SIMPLE_RIBBON: case XMB_SHADER_PIPELINE_SIMPLE_RIBBON:
strlcpy(s, strlcpy(s,
msg_hash_to_str( msg_hash_to_str(
MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_RIBBON_SIMPLIFIED), len); MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_RIBBON_SIMPLIFIED), len);
break; break;
case XMB_SHADER_PIPELINE_RIBBON: case XMB_SHADER_PIPELINE_RIBBON:
strlcpy(s, strlcpy(s,
msg_hash_to_str( msg_hash_to_str(
MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_RIBBON), len); MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_RIBBON), len);
break; break;
@ -307,7 +307,7 @@ static void menu_action_setting_disp_set_label_shader_default_filter(
return; return;
if (settings->video.smooth) if (settings->video.smooth)
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LINEAR), len); strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LINEAR), len);
else else
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NEAREST), len); strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NEAREST), len);
} }
@ -335,7 +335,7 @@ static void menu_action_setting_disp_set_label_shader_parameter(
if (!shader_info.data) if (!shader_info.data)
return; return;
param = &shader_info.data->parameters[type - param = &shader_info.data->parameters[type -
MENU_SETTINGS_SHADER_PARAMETER_0]; MENU_SETTINGS_SHADER_PARAMETER_0];
if (!param) if (!param)
@ -451,7 +451,7 @@ static void menu_action_setting_disp_set_label_input_desc(
const struct retro_keybind *auto_bind = NULL; const struct retro_keybind *auto_bind = NULL;
const struct retro_keybind *keybind = NULL; const struct retro_keybind *keybind = NULL;
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
unsigned inp_desc_index_offset = unsigned inp_desc_index_offset =
type - MENU_SETTINGS_INPUT_DESC_BEGIN; type - MENU_SETTINGS_INPUT_DESC_BEGIN;
unsigned inp_desc_user = inp_desc_index_offset / unsigned inp_desc_user = inp_desc_index_offset /
(RARCH_FIRST_CUSTOM_BIND + 4); (RARCH_FIRST_CUSTOM_BIND + 4);
@ -463,7 +463,7 @@ static void menu_action_setting_disp_set_label_input_desc(
return; return;
descriptor[0] = '\0'; descriptor[0] = '\0';
remap_id = settings->input.remap_ids remap_id = settings->input.remap_ids
[inp_desc_user][inp_desc_button_index_offset]; [inp_desc_user][inp_desc_button_index_offset];
@ -479,11 +479,11 @@ static void menu_action_setting_disp_set_label_input_desc(
{ {
if(strstr(descriptor, "Auto") && !strstr(descriptor, if(strstr(descriptor, "Auto") && !strstr(descriptor,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE))) msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE)))
strlcpy(s, strlcpy(s,
descriptor, descriptor,
len); len);
else else
strlcpy(s, strlcpy(s,
msg_hash_to_str(settings->input.binds[inp_desc_user][remap_id].enum_idx), msg_hash_to_str(settings->input.binds[inp_desc_user][remap_id].enum_idx),
len); len);
} }
@ -532,9 +532,9 @@ static void menu_action_setting_disp_set_label_cheat(
if (cheat_index < cheat_manager_get_buf_size()) if (cheat_index < cheat_manager_get_buf_size())
snprintf(s, len, "%s : (%s)", snprintf(s, len, "%s : (%s)",
(cheat_manager_get_code(cheat_index) != NULL) (cheat_manager_get_code(cheat_index) != NULL)
? cheat_manager_get_code(cheat_index) : ? cheat_manager_get_code(cheat_index) :
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE), msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
cheat_manager_get_code_state(cheat_index) ? cheat_manager_get_code_state(cheat_index) ?
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ON) : msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ON) :
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF) msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)
); );
@ -743,6 +743,10 @@ static void menu_action_setting_disp_set_label_xmb_theme(
strlcpy(s, strlcpy(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_PIXEL), len); msg_hash_to_str(MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_PIXEL), len);
break; break;
case XMB_ICON_THEME_MONOCHROME_JAGGED:
strlcpy(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME_JAGGED), len);
break;
case XMB_ICON_THEME_CUSTOM: case XMB_ICON_THEME_CUSTOM:
strlcpy(s, strlcpy(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_CUSTOM), len); msg_hash_to_str(MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_CUSTOM), len);
@ -936,7 +940,7 @@ static void menu_action_setting_disp_set_label_thumbnails(
MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_SCREENSHOTS), len); MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_SCREENSHOTS), len);
break; break;
case 2: case 2:
strlcpy(s, strlcpy(s,
msg_hash_to_str( msg_hash_to_str(
MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_TITLE_SCREENS), len); MENU_ENUM_LABEL_VALUE_THUMBNAIL_MODE_TITLE_SCREENS), len);
break; break;

View File

@ -367,6 +367,8 @@ const char *xmb_theme_ident(void)
return "pixel"; return "pixel";
case XMB_ICON_THEME_CUSTOM: case XMB_ICON_THEME_CUSTOM:
return "custom"; return "custom";
case XMB_ICON_THEME_MONOCHROME_JAGGED:
return "monochrome-jagged";
case XMB_ICON_THEME_MONOCHROME: case XMB_ICON_THEME_MONOCHROME:
default: default:
break; break;
@ -1543,7 +1545,7 @@ static void xmb_context_reset_horizontal_list(
continue; continue;
} }
iconpath[0] = sysname[0] = texturepath[0] = iconpath[0] = sysname[0] = texturepath[0] =
content_texturepath[0] = '\0'; content_texturepath[0] = '\0';
file_list_get_at_offset(xmb->horizontal_list, i, file_list_get_at_offset(xmb->horizontal_list, i,
@ -1719,7 +1721,7 @@ static void xmb_populate_entries(void *data,
} }
static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb, static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb,
xmb_node_t *core_node, xmb_node_t *node, xmb_node_t *core_node, xmb_node_t *node,
enum msg_hash_enums enum_idx, unsigned type, bool active) enum msg_hash_enums enum_idx, unsigned type, bool active)
{ {
switch (enum_idx) switch (enum_idx)
@ -1847,13 +1849,13 @@ char* word_wrap (char* buffer, char* string, int line_width) {
unsigned i = 0; unsigned i = 0;
int k, counter; int k, counter;
while(i < strlen( string ) ) while(i < strlen( string ) )
{ {
/* copy string until the end of the line is reached */ /* copy string until the end of the line is reached */
for ( counter = 1; counter <= line_width; counter++ ) for ( counter = 1; counter <= line_width; counter++ )
{ {
/* check if end of string reached */ /* check if end of string reached */
if ( i == strlen( string ) ) if ( i == strlen( string ) )
{ {
buffer[ i ] = 0; buffer[ i ] = 0;
return buffer; return buffer;
@ -1861,24 +1863,24 @@ char* word_wrap (char* buffer, char* string, int line_width) {
buffer[ i ] = string[ i ]; buffer[ i ] = string[ i ];
/* check for newlines embedded in the original input /* check for newlines embedded in the original input
* and reset the index */ * and reset the index */
if ( buffer[ i ] == '\n' ) if ( buffer[ i ] == '\n' )
counter = 1; counter = 1;
i++; i++;
} }
/* check for whitespace */ /* check for whitespace */
if ( isspace( string[ i ] ) ) if ( isspace( string[ i ] ) )
{ {
buffer[i] = '\n'; buffer[i] = '\n';
i++; i++;
} }
else else
{ {
/* check for nearest whitespace back in string */ /* check for nearest whitespace back in string */
for ( k = i; k > 0; k--) for ( k = i; k > 0; k--)
{ {
if ( isspace( string[ k ] ) ) if ( isspace( string[ k ] ) )
{ {
buffer[ k ] = '\n'; buffer[ k ] = '\n';
/* set string index back to character after this one */ /* set string index back to character after this one */
@ -2232,7 +2234,7 @@ static void xmb_draw_bg(
#if 0 #if 0
RARCH_LOG("DRAW BG %d %d \n",width,height); RARCH_LOG("DRAW BG %d %d \n",width,height);
#endif #endif
bool running = menu_display_libretro_running(); bool running = menu_display_libretro_running();
draw.x = 0; draw.x = 0;
@ -2251,8 +2253,8 @@ static void xmb_draw_bg(
menu_display_set_viewport(); menu_display_set_viewport();
#ifdef HAVE_SHADERPIPELINE #ifdef HAVE_SHADERPIPELINE
if (settings->menu.xmb.shader_pipeline > XMB_SHADER_PIPELINE_WALLPAPER if (settings->menu.xmb.shader_pipeline > XMB_SHADER_PIPELINE_WALLPAPER
&& &&
(settings->menu.xmb.menu_color_theme != XMB_THEME_WALLPAPER)) (settings->menu.xmb.menu_color_theme != XMB_THEME_WALLPAPER))
{ {
draw.color = xmb_gradient_ident(); draw.color = xmb_gradient_ident();
@ -2543,7 +2545,7 @@ static void xmb_frame(void *data)
xmb->selection_buf_old, xmb->selection_buf_old,
xmb->menu_stack_old, xmb->menu_stack_old,
xmb->selection_ptr_old, xmb->selection_ptr_old,
(xmb_list_get_size(xmb, MENU_LIST_PLAIN) > 1) (xmb_list_get_size(xmb, MENU_LIST_PLAIN) > 1)
? xmb->categories.selection_ptr : xmb->categories.selection_ptr_old, ? xmb->categories.selection_ptr : xmb->categories.selection_ptr_old,
&item_color[0], &item_color[0],
width, width,

View File

@ -64,6 +64,7 @@ enum xmb_icon_theme
XMB_ICON_THEME_FLATUI, XMB_ICON_THEME_FLATUI,
XMB_ICON_THEME_RETROACTIVE, XMB_ICON_THEME_RETROACTIVE,
XMB_ICON_THEME_PIXEL, XMB_ICON_THEME_PIXEL,
XMB_ICON_THEME_MONOCHROME_JAGGED,
XMB_ICON_THEME_CUSTOM XMB_ICON_THEME_CUSTOM
}; };

View File

@ -352,6 +352,7 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI, MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_FLATUI,
MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE, MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_RETROACTIVE,
MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_PIXEL, MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_PIXEL,
MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME_JAGGED,
MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_CUSTOM, MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_CUSTOM,
MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_LEGACY_RED, MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_LEGACY_RED,