new usb logos for all screens, utilising lcd_bitmap_transparent() on colour displays. It saves some bytes on Archos as a nice side effect
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11560 a1c6a512-1295-4272-9138-f99709370657
|
@ -21,6 +21,21 @@ rockboxlogo.240x74x16.bmp
|
|||
rockboxlogo.320x98x16.bmp
|
||||
#endif
|
||||
|
||||
usblogo.100x32x1.bmp
|
||||
/* USB logo */
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
#if LCD_WIDTH > 176
|
||||
usblogo.176x48x16.bmp
|
||||
#elif LCD_WIDTH >= 128
|
||||
usblogo.128x37x16.bmp
|
||||
#endif
|
||||
#elif LCD_DEPTH > 1 /* greyscale */
|
||||
usblogo.128x33x2.bmp
|
||||
#else /* monochrome */
|
||||
#if LCD_WIDTH == 112
|
||||
usblogo.100x20x1.bmp
|
||||
#else
|
||||
usblogo.104x27x1.bmp
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* HAVE_LCD_BITMAP */
|
||||
|
|
BIN
apps/bitmaps/native/usblogo.100x20x1.bmp
Executable file
After Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 574 B |
BIN
apps/bitmaps/native/usblogo.104x27x1.bmp
Executable file
After Width: | Height: | Size: 494 B |
BIN
apps/bitmaps/native/usblogo.128x33x2.bmp
Executable file
After Width: | Height: | Size: 4.2 KiB |
BIN
apps/bitmaps/native/usblogo.128x37x16.bmp
Executable file
After Width: | Height: | Size: 14 KiB |
BIN
apps/bitmaps/native/usblogo.176x48x16.bmp
Executable file
After Width: | Height: | Size: 25 KiB |
|
@ -2,10 +2,10 @@
|
|||
|
||||
#if (LCD_REMOTE_DEPTH == 1)
|
||||
remote_rockboxlogo.128x42x1.bmp
|
||||
remote_usblogo.104x27x1.bmp
|
||||
#elif (LCD_REMOTE_DEPTH == 2)
|
||||
remote_rockboxlogo.128x42x2.bmp
|
||||
remote_usblogo.104x27x2.bmp
|
||||
#endif
|
||||
|
||||
remote_usblogo.100x32x1.bmp
|
||||
|
||||
#endif /* HAVE_REMOTE_LCD */
|
||||
|
|
Before Width: | Height: | Size: 574 B |
BIN
apps/bitmaps/remote_native/remote_usblogo.104x27x1.bmp
Executable file
After Width: | Height: | Size: 494 B |
BIN
apps/bitmaps/remote_native/remote_usblogo.104x27x2.bmp
Executable file
After Width: | Height: | Size: 2.8 KiB |
|
@ -96,7 +96,7 @@ void usb_screen(void)
|
|||
#ifdef HAVE_REMOTE_LCD
|
||||
lcd_remote_clear_display();
|
||||
lcd_remote_bitmap(remote_usblogo,
|
||||
(LCD_REMOTE_WIDTH-BMPWIDTH_remote_usblogo)/2,
|
||||
(LCD_REMOTE_WIDTH-BMPWIDTH_remote_usblogo),
|
||||
(LCD_REMOTE_HEIGHT-BMPHEIGHT_remote_usblogo)/2,
|
||||
BMPWIDTH_remote_usblogo, BMPHEIGHT_remote_usblogo);
|
||||
lcd_remote_update();
|
||||
|
@ -104,9 +104,16 @@ void usb_screen(void)
|
|||
|
||||
lcd_clear_display();
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
lcd_bitmap(usblogo, (LCD_WIDTH-BMPWIDTH_usblogo)/2,
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
lcd_bitmap_transparent(usblogo, (LCD_WIDTH-BMPWIDTH_usblogo),
|
||||
(LCD_HEIGHT-BMPHEIGHT_usblogo)/2,
|
||||
BMPWIDTH_usblogo, BMPHEIGHT_usblogo);
|
||||
#else
|
||||
lcd_bitmap(usblogo, (LCD_WIDTH-BMPWIDTH_usblogo),
|
||||
(LCD_HEIGHT-BMPHEIGHT_usblogo)/2,
|
||||
BMPWIDTH_usblogo, BMPHEIGHT_usblogo);
|
||||
#endif /* HAVE_LCD_COLOR */
|
||||
|
||||
lcd_update();
|
||||
#else
|
||||
lcd_double_height(false);
|
||||
|
|