1
0
Fork 0
forked from len0rd/rockbox

Always check, if the USB logo for remotes overrides their physical size.

This fixes displaying of the main USB screen on m:robe 100. A remote for
this particular target has no native remote USB logo and it uses a larger
one. However it's a good idea to perform this check always IMHO.

Change-Id: I56ceb2316c551269be011b60271d8da11cb8b073
This commit is contained in:
Szymon Dziok 2014-01-12 18:44:43 +01:00
parent 621d74e5f9
commit bac85f2cb4

View file

@ -142,8 +142,10 @@ static void usb_screen_fix_viewports(struct screen *screen,
#ifdef HAVE_REMOTE_LCD
if (screen->screen_type == SCREEN_REMOTE)
{
logo_width = BMPWIDTH_remote_usblogo;
logo_height = BMPHEIGHT_remote_usblogo;
logo_width = (BMPWIDTH_remote_usblogo > LCD_REMOTE_WIDTH) ?
LCD_REMOTE_WIDTH : BMPWIDTH_remote_usblogo;
logo_height = (BMPHEIGHT_remote_usblogo > LCD_REMOTE_HEIGHT) ?
LCD_REMOTE_HEIGHT : BMPHEIGHT_remote_usblogo;
}
else
#endif