diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-04 14:16:32 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-04 14:16:32 +0000 |
commit | bcaa1131797625e4594a766b6d354e46502c390a (patch) | |
tree | 8dde567263ec9c91a08449e05e8b5c8a9a73893f /apps | |
parent | 9546e4093d8a6f9b27c06db242894c3dc9d9f574 (diff) |
Move definition of mode_name outside #ifdef
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22915 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/screens.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/screens.c b/apps/screens.c index 66e42290c1..e4919fdcbd 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -195,22 +195,21 @@ void usb_screen(void) else #endif { + char mode_name[MODE_NAME_LEN]; #ifdef HAVE_LCD_BITMAP screens[i].transparent_bitmap(usblogo, (LCD_WIDTH-BMPWIDTH_usblogo), (LCD_HEIGHT-BMPHEIGHT_usblogo)/2, BMPWIDTH_usblogo, BMPHEIGHT_usblogo); #ifdef USB_ENABLE_HID - char mode_name[MODE_NAME_LEN]; int w, h; snprintf(mode_name, MODE_NAME_LEN, "%s", str(keypad_mode_name_get())); - screens[i].getstringsize(mode_name, &w, &h); screens[i].putsxy((LCD_WIDTH - w) / 2, BMPHEIGHT_usblogo + (LCD_HEIGHT - BMPHEIGHT_usblogo + h) / 2, mode_name); -#endif /* HID */ +#endif /* USB_ENABLE_HID */ #else /* HAVE_LCD_BITMAP */ screens[i].double_height(false); #ifdef USB_ENABLE_HID @@ -219,7 +218,7 @@ void usb_screen(void) screens[i].puts_scroll(0, 0, mode_name); #else screens[i].puts_scroll(0, 0, "[USB Mode]"); -#endif +#endif /* USB_ENABLE_HID */ status_set_param(false); status_set_audio(false); status_set_usb(true); |