mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Fix XMB thumbnail height limit.
This commit is contained in:
parent
e4b955d4d4
commit
a32880fd22
@ -3027,13 +3027,16 @@ static void xmb_frame(void *data, video_frame_info_t *video_info)
|
||||
RARCH_LOG("[XMB thumbnail] w: %.2f, h: %.2f\n", width, height);
|
||||
#endif
|
||||
|
||||
/* Resize thumbnail if its height cross the bottom of the screen */
|
||||
if(xmb->margins_screen_top + xmb->icon_size + xmb->thumbnail_height * scale_mod[4] >= 1040)
|
||||
/* Limit thumbnail height to screen height + margin. */
|
||||
if( xmb->margins_screen_top + xmb->icon_size + xmb->thumbnail_height *
|
||||
scale_mod[4] >= 1040 * (height / 1080) )
|
||||
{
|
||||
thumb_width = xmb->thumbnail_width *
|
||||
((1040 - xmb->margins_screen_top - xmb->icon_size) / (xmb->thumbnail_height * scale_mod[4]));
|
||||
((1040 * (height / 1080) - xmb->margins_screen_top - xmb->icon_size) /
|
||||
(xmb->thumbnail_height * scale_mod[4]));
|
||||
thumb_height = xmb->thumbnail_height *
|
||||
((1040 - xmb->margins_screen_top - xmb->icon_size) / (xmb->thumbnail_height * scale_mod[4]));
|
||||
((1040 * (height / 1080) - xmb->margins_screen_top - xmb->icon_size) /
|
||||
(xmb->thumbnail_height * scale_mod[4]));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user