summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/screens.c7
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)
195 else 195 else
196#endif 196#endif
197 { 197 {
198 char mode_name[MODE_NAME_LEN];
198#ifdef HAVE_LCD_BITMAP 199#ifdef HAVE_LCD_BITMAP
199 screens[i].transparent_bitmap(usblogo, 200 screens[i].transparent_bitmap(usblogo,
200 (LCD_WIDTH-BMPWIDTH_usblogo), 201 (LCD_WIDTH-BMPWIDTH_usblogo),
201 (LCD_HEIGHT-BMPHEIGHT_usblogo)/2, 202 (LCD_HEIGHT-BMPHEIGHT_usblogo)/2,
202 BMPWIDTH_usblogo, BMPHEIGHT_usblogo); 203 BMPWIDTH_usblogo, BMPHEIGHT_usblogo);
203#ifdef USB_ENABLE_HID 204#ifdef USB_ENABLE_HID
204 char mode_name[MODE_NAME_LEN];
205 int w, h; 205 int w, h;
206 206
207 snprintf(mode_name, MODE_NAME_LEN, "%s", 207 snprintf(mode_name, MODE_NAME_LEN, "%s",
208 str(keypad_mode_name_get())); 208 str(keypad_mode_name_get()));
209
210 screens[i].getstringsize(mode_name, &w, &h); 209 screens[i].getstringsize(mode_name, &w, &h);
211 screens[i].putsxy((LCD_WIDTH - w) / 2, BMPHEIGHT_usblogo + 210 screens[i].putsxy((LCD_WIDTH - w) / 2, BMPHEIGHT_usblogo +
212 (LCD_HEIGHT - BMPHEIGHT_usblogo + h) / 2, mode_name); 211 (LCD_HEIGHT - BMPHEIGHT_usblogo + h) / 2, mode_name);
213#endif /* HID */ 212#endif /* USB_ENABLE_HID */
214#else /* HAVE_LCD_BITMAP */ 213#else /* HAVE_LCD_BITMAP */
215 screens[i].double_height(false); 214 screens[i].double_height(false);
216#ifdef USB_ENABLE_HID 215#ifdef USB_ENABLE_HID
@@ -219,7 +218,7 @@ void usb_screen(void)
219 screens[i].puts_scroll(0, 0, mode_name); 218 screens[i].puts_scroll(0, 0, mode_name);
220#else 219#else
221 screens[i].puts_scroll(0, 0, "[USB Mode]"); 220 screens[i].puts_scroll(0, 0, "[USB Mode]");
222#endif 221#endif /* USB_ENABLE_HID */
223 status_set_param(false); 222 status_set_param(false);
224 status_set_audio(false); 223 status_set_audio(false);
225 status_set_usb(true); 224 status_set_usb(true);