Skip to content

Commit 5690b5d

Browse files
committed
Ozone: Sublabel width+wrap+newline cleanup
1 parent 62b81b6 commit 5690b5d

4 files changed

Lines changed: 21 additions & 20 deletions

File tree

intl/msg_hash_us.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ int msg_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
5555
case MENU_ENUM_LABEL_INPUT_RETROPAD_BINDS:
5656
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_INPUT_RETROPAD_BINDS), len);
5757
break;
58+
case MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR:
59+
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_INPUT_POLL_TYPE_BEHAVIOR), len);
60+
break;
61+
case MENU_ENUM_LABEL_DISK_IMAGE_APPEND:
62+
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_DISK_IMAGE_APPEND), len);
63+
break;
5864
case MENU_ENUM_LABEL_ACCOUNTS_RETRO_ACHIEVEMENTS:
5965
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_ACCOUNTS_RETRO_ACHIEVEMENTS), len);
6066
break;
@@ -139,9 +145,6 @@ int msg_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
139145
case MENU_ENUM_LABEL_FILE_BROWSER_DIRECTORY:
140146
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_FILE_BROWSER_DIRECTORY), len);
141147
break;
142-
case MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR:
143-
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_INPUT_POLL_TYPE_BEHAVIOR), len);
144-
break;
145148
case MENU_ENUM_LABEL_CORE_LIST:
146149
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_HELP_CORE_LIST), len);
147150
break;

intl/msg_hash_us.h

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ MSG_HASH(
21182118
)
21192119
MSG_HASH(
21202120
MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE,
2121-
"Vertical refresh rate of your screen. Used to calculate a suitable audio input rate.\nThis will be ignored if 'Threaded Video' is enabled."
2121+
"Vertical refresh rate of your screen. Used to calculate a suitable audio input rate. This will be ignored if 'Threaded Video' is enabled."
21222122
)
21232123
MSG_HASH(
21242124
MENU_ENUM_LABEL_VALUE_VIDEO_REFRESH_RATE_AUTO,
@@ -5122,7 +5122,7 @@ MSG_HASH(
51225122
)
51235123
MSG_HASH(
51245124
MENU_ENUM_SUBLABEL_FRAME_TIME_COUNTER_SETTINGS,
5125-
"Change settings influencing the frame time counter.\nOnly active when threaded video is disabled."
5125+
"Change settings influencing the frame time counter. Only active when threaded video is disabled."
51265126
)
51275127
MSG_HASH(
51285128
MENU_ENUM_LABEL_VALUE_FASTFORWARD_RATIO,
@@ -7437,7 +7437,7 @@ MSG_HASH(
74377437
)
74387438
MSG_HASH(
74397439
MENU_ENUM_SUBLABEL_CHEEVOS_VISIBILITY_SUMMARY,
7440-
"Shows information about the game being loaded and the user's current progress.\n'All Identified Games' will show summary for games with no published achievements."
7440+
"Shows information about the game being loaded and the user's current progress. 'All Identified Games' will show summary for games with no published achievements."
74417441
)
74427442
MSG_HASH(
74437443
MENU_ENUM_LABEL_VALUE_CHEEVOS_VISIBILITY_SUMMARY_ALLGAMES,
@@ -7914,7 +7914,7 @@ MSG_HASH(
79147914
)
79157915
MSG_HASH(
79167916
MENU_ENUM_SUBLABEL_PLAYLIST_SHOW_INLINE_CORE_NAME,
7917-
"Specify when to tag playlist entries with the currently associated core (if any).\nThis setting is ignored when playlist sublabels are enabled."
7917+
"Specify when to tag playlist entries with the currently associated core (if any). This setting is ignored when playlist sublabels are enabled."
79187918
)
79197919
MSG_HASH(
79207920
MENU_ENUM_LABEL_VALUE_PLAYLIST_SHOW_SUBLABELS,
@@ -8022,7 +8022,7 @@ MSG_HASH(
80228022
)
80238023
MSG_HASH(
80248024
MENU_ENUM_SUBLABEL_PLAYLIST_SUBLABEL_RUNTIME_TYPE,
8025-
"Select which type of runtime log record to display on playlist sublabels.\nThe corresponding runtime log must be enabled via the 'Saving' options menu."
8025+
"Select which type of runtime log record to display on playlist sublabels. The corresponding runtime log must be enabled via the 'Saving' options menu."
80268026
)
80278027
MSG_HASH(
80288028
MENU_ENUM_LABEL_VALUE_PLAYLIST_SUBLABEL_LAST_PLAYED_STYLE,
@@ -8207,7 +8207,7 @@ MSG_HASH(
82078207
)
82088208
MSG_HASH(
82098209
MENU_ENUM_SUBLABEL_DISCORD_ALLOW,
8210-
"Allow the Discord app to show data about the content played.\nOnly available with the native desktop client."
8210+
"Allow the Discord app to show data about the content played. Only available with the native desktop client."
82118211
)
82128212
MSG_HASH(
82138213
MENU_ENUM_LABEL_VALUE_LOCATION_ALLOW,
@@ -8624,15 +8624,15 @@ MSG_HASH(
86248624
)
86258625
MSG_HASH(
86268626
MENU_ENUM_SUBLABEL_ADD_TO_MIXER,
8627-
"Add this audio track to an available audio stream slot.\nIf no slots are currently available, it will be ignored."
8627+
"Add this audio track to an available audio stream slot. If no slots are currently available, it will be ignored."
86288628
)
86298629
MSG_HASH(
86308630
MENU_ENUM_LABEL_VALUE_ADD_TO_MIXER_AND_PLAY,
86318631
"Add to Mixer and Play"
86328632
)
86338633
MSG_HASH(
86348634
MENU_ENUM_SUBLABEL_ADD_TO_MIXER_AND_PLAY,
8635-
"Add this audio track to an available audio stream slot and play it.\nIf no slots are currently available, it will be ignored."
8635+
"Add this audio track to an available audio stream slot and play it. If no slots are currently available, it will be ignored."
86368636
)
86378637

86388638
/* Netplay */
@@ -9734,7 +9734,7 @@ MSG_HASH(
97349734
)
97359735
MSG_HASH(
97369736
MENU_ENUM_SUBLABEL_CHEAT_BIG_ENDIAN,
9737-
"Big Endian: 258 = 0x0102\nLittle Endian: 258 = 0x0201"
9737+
"Big Endian: 258 = 0x0102, Little Endian: 258 = 0x0201"
97389738
)
97399739
MSG_HASH(
97409740
MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_EXACT,
@@ -10042,6 +10042,10 @@ MSG_HASH(
1004210042
)
1004310043
MSG_HASH(
1004410044
MENU_ENUM_SUBLABEL_DISK_IMAGE_APPEND,
10045+
"Select a new disc from the filesystem and append it in the index list."
10046+
)
10047+
MSG_HASH(
10048+
MENU_ENUM_LABEL_HELP_DISK_IMAGE_APPEND,
1004510049
"Select a new disc from the filesystem and append it in the index list.\nNOTE: This is a legacy feature. It is instead recommended to use M3U playlists for multi-disc titles."
1004610050
)
1004710051

menu/drivers/ozone.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5679,19 +5679,13 @@ static void ozone_update_scroll(ozone_handle_t *ozone,
56795679
static int ozone_get_sublabel_max_width(ozone_handle_t *ozone,
56805680
unsigned video_info_width, unsigned entry_padding)
56815681
{
5682-
int max_width = video_info_width / 2;
5683-
int sublabel_max_width = video_info_width
5684-
- (entry_padding * 2)
5685-
- (ozone->dimensions.entry_icon_padding * 3);
5682+
int sublabel_max_width = video_info_width - entry_padding;
56865683

56875684
if (ozone->depth == 1)
56885685
sublabel_max_width -= (int)ozone->dimensions_sidebar_width;
56895686
if (ozone->show_thumbnail_bar)
56905687
sublabel_max_width -= ozone->dimensions.thumbnail_bar_width;
56915688

5692-
if (sublabel_max_width > max_width)
5693-
sublabel_max_width = max_width;
5694-
56955689
return sublabel_max_width;
56965690
}
56975691

msg_hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3014,7 +3014,7 @@ enum msg_hash_enums
30143014
MENU_LABEL(RESTART_RETROARCH),
30153015
MENU_LABEL(SHUTDOWN),
30163016
MENU_LABEL(REBOOT),
3017-
MENU_LABEL(DISK_IMAGE_APPEND),
3017+
MENU_LBL_H(DISK_IMAGE_APPEND),
30183018

30193019
MENU_LABEL(SUBSYSTEM_ADD),
30203020
MENU_LABEL(SUBSYSTEM_LOAD),

0 commit comments

Comments
 (0)