diff options
Diffstat (limited to 'apps/screens.c')
-rw-r--r-- | apps/screens.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/screens.c b/apps/screens.c index 6c6c5325be..6f81231091 100644 --- a/apps/screens.c +++ b/apps/screens.c | |||
@@ -363,8 +363,8 @@ int pitch_screen(void) | |||
363 | while (!exit) { | 363 | while (!exit) { |
364 | 364 | ||
365 | if ( used ) { | 365 | if ( used ) { |
366 | char* ptr; | 366 | unsigned char* ptr; |
367 | char buf[32]; | 367 | unsigned char buf[32]; |
368 | int w, h; | 368 | int w, h; |
369 | 369 | ||
370 | lcd_clear_display(); | 370 | lcd_clear_display(); |
@@ -376,7 +376,8 @@ int pitch_screen(void) | |||
376 | lcd_mono_bitmap(bitmap_icons_7x8[Icon_UpArrow], | 376 | lcd_mono_bitmap(bitmap_icons_7x8[Icon_UpArrow], |
377 | LCD_WIDTH/2 - 3, h*2, 7, 8); | 377 | LCD_WIDTH/2 - 3, h*2, 7, 8); |
378 | 378 | ||
379 | snprintf(buf, sizeof buf, "%d.%d%%", pitch / 10, pitch % 10 ); | 379 | snprintf((char *)buf, sizeof buf, "%d.%d%%", |
380 | pitch / 10, pitch % 10 ); | ||
380 | lcd_getstringsize(buf,&w,&h); | 381 | lcd_getstringsize(buf,&w,&h); |
381 | lcd_putsxy((LCD_WIDTH-w)/2, h, buf); | 382 | lcd_putsxy((LCD_WIDTH-w)/2, h, buf); |
382 | 383 | ||
@@ -487,9 +488,9 @@ int pitch_screen(void) | |||
487 | 488 | ||
488 | void quick_screen_quick_apply(struct gui_quickscreen *qs) | 489 | void quick_screen_quick_apply(struct gui_quickscreen *qs) |
489 | { | 490 | { |
490 | global_settings.playlist_shuffle=int_to_bool(option_select_get_selected(qs->left_option)); | 491 | global_settings.playlist_shuffle=int_to_bool(qs->left_option->option); |
491 | global_settings.dirfilter=option_select_get_selected(qs->bottom_option); | 492 | global_settings.dirfilter=qs->bottom_option->option; |
492 | global_settings.repeat_mode=option_select_get_selected(qs->right_option); | 493 | global_settings.repeat_mode=qs->right_option->option; |
493 | } | 494 | } |
494 | 495 | ||
495 | bool quick_screen_quick(int button_enter) | 496 | bool quick_screen_quick(int button_enter) |
@@ -619,7 +620,7 @@ bool quick_screen_f3(int button_enter) | |||
619 | #if defined(HAVE_CHARGING) || defined(SIMULATOR) | 620 | #if defined(HAVE_CHARGING) || defined(SIMULATOR) |
620 | void charging_splash(void) | 621 | void charging_splash(void) |
621 | { | 622 | { |
622 | gui_syncsplash(2*HZ, true, (char *)str(LANG_BATTERY_CHARGE)); | 623 | gui_syncsplash(2*HZ, true, (unsigned char *)str(LANG_BATTERY_CHARGE)); |
623 | button_clear_queue(); | 624 | button_clear_queue(); |
624 | } | 625 | } |
625 | #endif | 626 | #endif |