summaryrefslogtreecommitdiffstats
path: root/apps/screens.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-04-23 11:26:25 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-04-23 11:26:25 +0000
commit942bc9449ea587fc3d50a468da56df32baf0748f (patch)
treeca3731dfb763dbb299fe0edb41fa019263b588a0 /apps/screens.c
parent10fd7b6c3b3ed8bfd15ec1a6b67aaff3c4cf2a69 (diff)
downloadrockbox-942bc9449ea587fc3d50a468da56df32baf0748f.tar.gz
rockbox-942bc9449ea587fc3d50a468da56df32baf0748f.tar.bz2
rockbox-942bc9449ea587fc3d50a468da56df32baf0748f.zip
Only redraw the status line when info actually changed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3588 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 2e120de4ab..87a9869196 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -85,14 +85,14 @@ void usb_display_info(void)
BMPWIDTH_usb_logo, 8, false);
lcd_bitmap(usb_logo+BMPWIDTH_usb_logo*3, 6, 40,
BMPWIDTH_usb_logo, 8, false);
- status_draw();
+ status_draw(true);
lcd_update();
#else
lcd_puts(0, 0, "[USB Mode]");
status_set_param(false);
status_set_audio(false);
status_set_usb(true);
- status_draw();
+ status_draw(false);
#endif
}
@@ -101,9 +101,10 @@ void usb_screen(void)
#ifndef SIMULATOR
backlight_on();
usb_acknowledge(SYS_USB_CONNECTED_ACK);
+ usb_display_info();
while(usb_wait_for_disconnect_w_tmo(&button_queue, HZ)) {
if(usb_inserted()) {
- usb_display_info();
+ status_draw(false);
}
}
#ifdef HAVE_LCD_CHARCELLS