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:
parent
621d74e5f9
commit
bac85f2cb4
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue