Fix XMB thumbnail height limit again.

This commit is contained in:
Tatsuya79 2018-03-24 23:22:42 +01:00
parent a32880fd22
commit 35ae907899

View File

@ -3028,14 +3028,14 @@ static void xmb_frame(void *data, video_frame_info_t *video_info)
#endif
/* Limit thumbnail height to screen height + margin. */
if( xmb->margins_screen_top + xmb->icon_size + xmb->thumbnail_height *
scale_mod[4] >= 1040 * (height / 1080) )
if( xmb->margins_screen_top + xmb->icon_size + xmb->thumbnail_height * scale_mod[4] >=
(float)(height * 0.96) )
{
thumb_width = xmb->thumbnail_width *
((1040 * (height / 1080) - xmb->margins_screen_top - xmb->icon_size) /
(((float)(height * 0.96) - xmb->margins_screen_top - xmb->icon_size) /
(xmb->thumbnail_height * scale_mod[4]));
thumb_height = xmb->thumbnail_height *
((1040 * (height / 1080) - xmb->margins_screen_top - xmb->icon_size) /
(((float)(height * 0.96) - xmb->margins_screen_top - xmb->icon_size) /
(xmb->thumbnail_height * scale_mod[4]));
}
else