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
This commit is contained in:
Marianne Arnold 2006-11-20 10:56:22 +00:00
parent 0b2ac4b427
commit 99975e9fb5
12 changed files with 27 additions and 5 deletions

View file

@ -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 */

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -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 */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -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);