(Menu) Create MENU_LABEL_CUSTOM_RATIO

This commit is contained in:
twinaphex 2015-06-19 06:18:53 +02:00
parent 0069df0361
commit 99f0453f11
3 changed files with 9 additions and 1 deletions

View File

@ -1808,7 +1808,9 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
menu_list_push(info->list, "Screen Resolution", "",
MENU_SETTINGS_VIDEO_RESOLUTION, 0, 0);
#endif
menu_list_push(info->list, "Custom Ratio", "",
menu_list_push(info->list,
menu_hash_to_str(MENU_LABEL_VALUE_CUSTOM_RATIO),
menu_hash_to_str(MENU_LABEL_CUSTOM_RATIO),
MENU_SETTINGS_CUSTOM_VIEWPORT, 0, 0);
#ifndef HAVE_FILTERS_BUILTIN
menu_list_push(info->list,

View File

@ -47,6 +47,10 @@ static const char *menu_hash_to_str_english(uint32_t hash)
{
switch (hash)
{
case MENU_LABEL_CUSTOM_RATIO:
return "custom_ratio";
case MENU_LABEL_VALUE_CUSTOM_RATIO:
return "Custom Ratio";
case MENU_LABEL_VALUE_USE_THIS_DIRECTORY:
return "<Use this directory>";
case MENU_LABEL_USE_THIS_DIRECTORY:

View File

@ -314,6 +314,8 @@ extern "C" {
#define MENU_LABEL_LOAD_OPEN_ZIP 0x8aa3c068U
#define MENU_LABEL_CUSTOM_VIEWPORT_1 0x76c3016fU
#define MENU_LABEL_CUSTOM_VIEWPORT_2 0x76c30170U
#define MENU_LABEL_CUSTOM_RATIO 0xf038731eU
#define MENU_LABEL_VALUE_CUSTOM_RATIO 0x3c94b73fU
#define MENU_LABEL_HELP 0x7c97d2eeU
#define MENU_LABEL_VALUE_HELP 0x7c8646ceU
#define MENU_LABEL_INPUT_OVERLAY 0x24e24796U