diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-12-12 22:19:42 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-12-12 22:19:42 +0000 |
commit | 6ed3ca74052542d331436adfef55f3f4763b8004 (patch) | |
tree | bb9e3462c0d0bbe4233a5a5c9671dcb50203c01c /apps/gui | |
parent | 7c18a3d91a4db214d305c56697fa92aab0757877 (diff) |
Make some more constants involved in right shifts unsigned to get rid of __ashrsi3 in the Player's core as well, saving some binsize.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19409 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/gwps-common.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index bcaebc502b..46453dc4c9 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -617,11 +617,11 @@ static bool draw_player_progress(struct gui_wps *gwps) for (i = 0; i < 7; i++, pos -= 5) { if (pos <= 0) - progress_pattern[i] = 0x1f; + progress_pattern[i] = 0x1fu; else if (pos >= 5) - progress_pattern[i] = 0x00; + progress_pattern[i] = 0x00u; else - progress_pattern[i] = 0x1f >> pos; + progress_pattern[i] = 0x1fu >> pos; } display->define_pattern(gwps->data->wps_progress_pat[0], progress_pattern); @@ -688,20 +688,20 @@ static void draw_player_fullbar(struct gui_wps *gwps, char* buf, int buf_size) if (time_idx > 0) /* not the first group, add colon in front */ { - progress_pattern[1] |= 0x10; - progress_pattern[3] |= 0x10; + progress_pattern[1] |= 0x10u; + progress_pattern[3] |= 0x10u; } time_idx++; } if (pos >= 5) - progress_pattern[5] = progress_pattern[6] = 0x1f; + progress_pattern[5] = progress_pattern[6] = 0x1fu; } if (pos > 0 && pos < 5) { softchar = true; - progress_pattern[5] = progress_pattern[6] = (~0x1f >> pos) & 0x1f; + progress_pattern[5] = progress_pattern[6] = (~0x1fu >> pos) & 0x1fu; } if (softchar && pat_idx < 8) |