diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-12-05 23:37:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-12-05 23:37:14 +0000 |
commit | b05eec8b1ea4cbad0b668a8974c87272acc78ed6 (patch) | |
tree | d3df417790fe731d9ef7f65d01a11cbd374285dc /apps/screens.c | |
parent | f981ea93fb411019133a022c7dd873166d66b5dd (diff) | |
download | rockbox-b05eec8b1ea4cbad0b668a8974c87272acc78ed6.tar.gz rockbox-b05eec8b1ea4cbad0b668a8974c87272acc78ed6.zip |
Big Code Police raid. Pretty pretty please, we do no macrofy simple
assignments and things just to make them appear as function calls. That makes
code harder to follow. Did some gcc4 warning fixes as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8163 a1c6a512-1295-4272-9138-f99709370657
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 |