diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/usb_screen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c index e5bc12960e..ff437ca10a 100644 --- a/apps/gui/usb_screen.c +++ b/apps/gui/usb_screen.c @@ -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 |