mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
update
This commit is contained in:
parent
12bf69fa29
commit
58df2e6427
@ -3031,6 +3031,7 @@ static void xmb_frame(void *data, video_frame_info_t *video_info)
|
||||
char msg[1024];
|
||||
char title_msg[255];
|
||||
char title_truncated[255];
|
||||
const int min_thumb_size = 50;
|
||||
settings_t *settings = config_get_ptr();
|
||||
unsigned width = video_info->width;
|
||||
unsigned height = video_info->height;
|
||||
@ -3112,8 +3113,6 @@ static void xmb_frame(void *data, video_frame_info_t *video_info)
|
||||
|
||||
/* Do not draw the right thumbnail if there is no space available */
|
||||
|
||||
const int min_thumb_size = 50;
|
||||
|
||||
if (((xmb->margins_screen_top + xmb->icon_size + min_thumb_size) <= height) &&
|
||||
((xmb->margins_screen_left * scale_mod[5] + xmb->icon_spacing_horizontal +
|
||||
xmb->icon_spacing_horizontal * 4 - xmb->icon_size / 4 + min_thumb_size) <= width))
|
||||
@ -3182,41 +3181,41 @@ static void xmb_frame(void *data, video_frame_info_t *video_info)
|
||||
|
||||
if ((xmb->margins_screen_top + xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1) + min_thumb_size) <= window_height)
|
||||
{
|
||||
/* Left Thumbnail */
|
||||
/* Left Thumbnail */
|
||||
|
||||
if (xmb->left_thumbnail
|
||||
&& !string_is_equal(xmb_thumbnails_ident('L'),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)))
|
||||
{
|
||||
float scale_factor = (settings->uints.menu_xmb_scale_factor * width) / (1920.0 * 100);
|
||||
|
||||
/* Limit left thumbnail height to screen height + margin. */
|
||||
if (xmb->margins_screen_top + xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1) +
|
||||
xmb->left_thumbnail_height >= (float)(height - (96.0 * scale_factor)))
|
||||
if (xmb->left_thumbnail
|
||||
&& !string_is_equal(xmb_thumbnails_ident('L'),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)))
|
||||
{
|
||||
left_thumb_width = xmb->left_thumbnail_width *
|
||||
(((float)(height - (96.0 * scale_factor)) - xmb->margins_screen_top -
|
||||
(xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1))) /
|
||||
xmb->left_thumbnail_height);
|
||||
float scale_factor = (settings->uints.menu_xmb_scale_factor * width) / (1920.0 * 100);
|
||||
|
||||
left_thumb_height = xmb->left_thumbnail_height *
|
||||
(((float)(height - (96.0 * scale_factor)) - xmb->margins_screen_top -
|
||||
(xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1))) /
|
||||
xmb->left_thumbnail_height);
|
||||
}
|
||||
else
|
||||
{
|
||||
left_thumb_width = xmb->left_thumbnail_width;
|
||||
left_thumb_height = xmb->left_thumbnail_height;
|
||||
}
|
||||
/* Limit left thumbnail height to screen height + margin. */
|
||||
if (xmb->margins_screen_top + xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1) +
|
||||
xmb->left_thumbnail_height >= (float)(height - (96.0 * scale_factor)))
|
||||
{
|
||||
left_thumb_width = xmb->left_thumbnail_width *
|
||||
(((float)(height - (96.0 * scale_factor)) - xmb->margins_screen_top -
|
||||
(xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1))) /
|
||||
xmb->left_thumbnail_height);
|
||||
|
||||
xmb_draw_thumbnail(video_info,
|
||||
xmb, &coord_white[0], width, height,
|
||||
20 * scale_factor + ((xmb->left_thumbnail_width - left_thumb_width) / 2),
|
||||
xmb->margins_screen_top + xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1) + left_thumb_height,
|
||||
left_thumb_width, left_thumb_height,
|
||||
xmb->left_thumbnail);
|
||||
}
|
||||
left_thumb_height = xmb->left_thumbnail_height *
|
||||
(((float)(height - (96.0 * scale_factor)) - xmb->margins_screen_top -
|
||||
(xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1))) /
|
||||
xmb->left_thumbnail_height);
|
||||
}
|
||||
else
|
||||
{
|
||||
left_thumb_width = xmb->left_thumbnail_width;
|
||||
left_thumb_height = xmb->left_thumbnail_height;
|
||||
}
|
||||
|
||||
xmb_draw_thumbnail(video_info,
|
||||
xmb, &coord_white[0], width, height,
|
||||
20 * scale_factor + ((xmb->left_thumbnail_width - left_thumb_width) / 2),
|
||||
xmb->margins_screen_top + xmb->icon_size * (!(xmb->depth == 1)? 2.1 : 1) + left_thumb_height,
|
||||
left_thumb_width, left_thumb_height,
|
||||
xmb->left_thumbnail);
|
||||
}
|
||||
}
|
||||
/* Clock image */
|
||||
menu_display_set_alpha(coord_white, MIN(xmb->alpha, 1.00f));
|
||||
|
Loading…
x
Reference in New Issue
Block a user