diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-23 02:18:29 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-23 02:18:29 +0000 |
commit | 97a804938996d5bbc122128eb78a074491c4ad61 (patch) | |
tree | 8e5b58c663edc49bcbffd40c8237f259ca36309c /apps/recorder/icons.c | |
parent | 6e0436f65cd461bb2b21c9a0178dfa6978213d27 (diff) | |
download | rockbox-97a804938996d5bbc122128eb78a074491c4ad61.tar.gz rockbox-97a804938996d5bbc122128eb78a074491c4ad61.zip |
New feature for units that can be powered or charged from USB (Recorder fm/v2, Ondios): USB power mode, based on patch #1110332 by Pieter Bos. This way you can save battery power or even charge the battery (fm/v2) while using your unit near a PC. Hold MODE (Ondio) or F1 (fm/v2) while plugging USB to enter that mode. A tiny USB plug icon will be displayed is the status bar (overridden by the regular power plug icon in case of fm/v2 when the charger is connected).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6836 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/icons.c')
-rw-r--r-- | apps/recorder/icons.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c index c77050e322..a10f2e1699 100644 --- a/apps/recorder/icons.c +++ b/apps/recorder/icons.c | |||
@@ -58,6 +58,7 @@ const unsigned char bitmap_icons_6x8[LastIcon][6] = | |||
58 | const unsigned char bitmap_icons_7x8[][7] = | 58 | const unsigned char bitmap_icons_7x8[][7] = |
59 | { | 59 | { |
60 | {0x08,0x1c,0x3e,0x3e,0x3e,0x14,0x14}, /* Power plug */ | 60 | {0x08,0x1c,0x3e,0x3e,0x3e,0x14,0x14}, /* Power plug */ |
61 | {0x1c,0x14,0x3e,0x2a,0x22,0x1c,0x08}, /* USB plug */ | ||
61 | {0x00,0x1c,0x1c,0x3e,0x7f,0x00,0x00}, /* Speaker */ | 62 | {0x00,0x1c,0x1c,0x3e,0x7f,0x00,0x00}, /* Speaker */ |
62 | {0x01,0x1e,0x1c,0x3e,0x7f,0x20,0x40}, /* Speaker mute */ | 63 | {0x01,0x1e,0x1c,0x3e,0x7f,0x20,0x40}, /* Speaker mute */ |
63 | {0x00,0x7f,0x7f,0x3e,0x1c,0x08,0x00}, /* Play */ | 64 | {0x00,0x7f,0x7f,0x3e,0x1c,0x08,0x00}, /* Play */ |
@@ -239,7 +240,7 @@ const unsigned char rockbox160x53[] = { | |||
239 | /* | 240 | /* |
240 | * Print battery icon to status bar | 241 | * Print battery icon to status bar |
241 | */ | 242 | */ |
242 | void statusbar_icon_battery(int percent, bool charging) | 243 | void statusbar_icon_battery(int percent) |
243 | { | 244 | { |
244 | int i; | 245 | int i; |
245 | int fill; | 246 | int fill; |
@@ -292,11 +293,6 @@ void statusbar_icon_battery(int percent, bool charging) | |||
292 | STATUSBAR_Y_POS, "?"); | 293 | STATUSBAR_Y_POS, "?"); |
293 | lcd_setfont(FONT_UI); | 294 | lcd_setfont(FONT_UI); |
294 | } | 295 | } |
295 | |||
296 | /* draw power plug if charging */ | ||
297 | if (charging) | ||
298 | lcd_bitmap(bitmap_icons_7x8[Icon_Plug], ICON_PLUG_X_POS, | ||
299 | STATUSBAR_Y_POS, ICON_PLUG_WIDTH, STATUSBAR_HEIGHT, false); | ||
300 | } | 296 | } |
301 | 297 | ||
302 | /* | 298 | /* |