diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-05-23 21:43:40 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-05-23 21:43:40 +0000 |
| commit | 8ed3b32ece8441e296f96e72b2f3461150c06d00 (patch) | |
| tree | f64d4422629cbdbb8976b68aacea598c2ee2145c /apps | |
| parent | f2d7270b7002d72f02d4d449e7fcbc62c11c9918 (diff) | |
| download | rockbox-8ed3b32ece8441e296f96e72b2f3461150c06d00.zip rockbox-8ed3b32ece8441e296f96e72b2f3461150c06d00.tar.gz rockbox-8ed3b32ece8441e296f96e72b2f3461150c06d00.tar.bz2 rockbox-8ed3b32ece8441e296f96e72b2f3461150c06d00.tar.xz | |
A bit of code police...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17617 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/screens.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/apps/screens.c b/apps/screens.c index a0e8c9b..bff2234 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -238,7 +238,8 @@ static void charging_display_info(bool animate) if (!animate) { /* draw the outline */ /* middle part */ - lcd_mono_bitmap(charging_logo, pox_x, pox_y + 8, sizeof(charging_logo), 8); + lcd_mono_bitmap(charging_logo, pox_x, pox_y + 8, + sizeof(charging_logo), 8); lcd_set_drawmode(DRMODE_FG); /* upper line */ charging_logo[0] = charging_logo[1] = 0x00; @@ -246,7 +247,8 @@ static void charging_display_info(bool animate) lcd_mono_bitmap(charging_logo, pox_x, pox_y, sizeof(charging_logo), 8); /* lower line */ memset(charging_logo+2, 0x01, 34); - lcd_mono_bitmap(charging_logo, pox_x, pox_y + 16, sizeof(charging_logo), 8); + lcd_mono_bitmap(charging_logo, pox_x, pox_y + 16, + sizeof(charging_logo), 8); lcd_set_drawmode(DRMODE_SOLID); } else @@ -262,7 +264,8 @@ static void charging_display_info(bool animate) charging_logo[i] = 0x01 << bitpos; } } - lcd_mono_bitmap(charging_logo, pox_x, pox_y + 8, sizeof(charging_logo), 8); + lcd_mono_bitmap(charging_logo, pox_x, pox_y + 8, + sizeof(charging_logo), 8); phase++; } lcd_update(); @@ -529,7 +532,8 @@ bool set_time_screen(const char* title, struct tm *tm) screens[s].getstringsize(SEPARATOR, &separator_width, NULL); /* weekday */ - screens[s].getstringsize(str(LANG_WEEKDAY_SUNDAY + tm->tm_wday), &weekday_width, NULL); + screens[s].getstringsize(str(LANG_WEEKDAY_SUNDAY + tm->tm_wday), + &weekday_width, NULL); screens[s].getstringsize(" ", &separator_width, NULL); for(i=0, j=0; i < 6; i++) @@ -552,8 +556,9 @@ bool set_time_screen(const char* title, struct tm *tm) screens[s].puts_scroll(0, 0, title); /* these are not selectable, so we draw them outside the loop */ - screens[s].putsxy(0, cursor[3][INDEX_Y], - str(LANG_WEEKDAY_SUNDAY + tm->tm_wday)); /* name of the week day */ + /* name of the week day */ + screens[s].putsxy(0, cursor[3][INDEX_Y], + str(LANG_WEEKDAY_SUNDAY + tm->tm_wday)); /* draw the selected item with drawmode set to DRMODE_SOLID|DRMODE_INVERSEVID, all other selectable @@ -562,13 +567,13 @@ bool set_time_screen(const char* title, struct tm *tm) { if (cursorpos == (int)i) vp[s].drawmode = (DRMODE_SOLID|DRMODE_INVERSEVID); - + screens[s].putsxy(cursor[i][INDEX_X], cursor[i][INDEX_Y], ptr[i]); vp[s].drawmode = DRMODE_SOLID; - screens[s].putsxy(cursor[i/4 +1][INDEX_X] - separator_width, + screens[s].putsxy(cursor[i/4 +1][INDEX_X] - separator_width, cursor[0][INDEX_Y], SEPARATOR); } @@ -781,8 +786,8 @@ static char * id3_get_info(int selected_item, void* data, info=buffer; break; case 11:/*LANG_ID3_PLAYLIST*/ - snprintf(buffer, buffer_len, "%d/%d", playlist_get_display_index(), - playlist_amount()); + snprintf(buffer, buffer_len, "%d/%d", + playlist_get_display_index(), playlist_amount()); info=buffer; break; case 12:/*LANG_ID3_BITRATE*/ @@ -921,4 +926,3 @@ bool view_runtime(void) } return false; } - |