Merge pull request #6451 from Tatsuya79/master
Fix XMB thumbnail height limit.
This commit is contained in:
commit
ce40bc6446
|
@ -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);
|
RARCH_LOG("[XMB thumbnail] w: %.2f, h: %.2f\n", width, height);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Resize thumbnail if its height cross the bottom of the screen */
|
/* Limit thumbnail height to screen height + margin. */
|
||||||
if(xmb->margins_screen_top + xmb->icon_size + xmb->thumbnail_height * scale_mod[4] >= 1040)
|
if( xmb->margins_screen_top + xmb->icon_size + xmb->thumbnail_height *
|
||||||
|
scale_mod[4] >= 1040 * (height / 1080) )
|
||||||
{
|
{
|
||||||
thumb_width = xmb->thumbnail_width *
|
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 *
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue