From 35ae9078992f874adc01a649035d91e61e2fce69 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Sat, 24 Mar 2018 23:22:42 +0100 Subject: [PATCH] Fix XMB thumbnail height limit again. --- menu/drivers/xmb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 3863b0b424..70ffcfccbc 100755 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -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