From bcaa1131797625e4594a766b6d354e46502c390a Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Sun, 4 Oct 2009 14:16:32 +0000 Subject: Move definition of mode_name outside #ifdef git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22915 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps') 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); -- cgit v1.2.3