diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-12-02 08:08:54 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-12-02 08:08:54 +0000 |
| commit | 72f423570f4c57b77b858fe035af08ae18238028 (patch) | |
| tree | ffee6968e9e4113be718b6f67b930d05840f4baf /apps/plugins/bounce.c | |
| parent | 1e4d1f8de7a523d34c064f7f4a6e7f001d55bb7f (diff) | |
| download | rockbox-72f423570f4c57b77b858fe035af08ae18238028.zip rockbox-72f423570f4c57b77b858fe035af08ae18238028.tar.gz rockbox-72f423570f4c57b77b858fe035af08ae18238028.tar.bz2 rockbox-72f423570f4c57b77b858fe035af08ae18238028.tar.xz | |
numerous gcc4 (un)signed warnings killed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8121 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bounce.c')
| -rw-r--r-- | apps/plugins/bounce.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c index 1bf8b3b..3a44a4c 100644 --- a/apps/plugins/bounce.c +++ b/apps/plugins/bounce.c @@ -325,7 +325,7 @@ static int scrollit(void) #if LCD_DEPTH > 1 rb->lcd_set_foreground(face_colors[ letter % 3] ); #endif - rb->lcd_mono_bitmap((char *)char_gen_12x16[letter-0x20], + rb->lcd_mono_bitmap(char_gen_12x16[letter-0x20], xx, table[yy&(TABLE_SIZE-1)], 11, 16); yy += YADD; xx+= DRAW_WIDTH/LETTERS_ON_SCREEN; @@ -407,13 +407,13 @@ static int loopit(void) } rb->snprintf(buffer, 30, "%s: %d", values[show].what, values[show].num); - rb->lcd_putsxy(0, LCD_HEIGHT - 8, buffer); + rb->lcd_putsxy(0, LCD_HEIGHT - 8, (unsigned char *)buffer); timeout--; } for(i=0, yy=y, xx=x; i<rocklen; i++, yy+=values[NUM_YDIST].num, xx+=values[NUM_XDIST].num) - rb->lcd_mono_bitmap((char *)char_gen_12x16[rock[i]-0x20], + rb->lcd_mono_bitmap(char_gen_12x16[rock[i]-0x20], xtable[xx&(TABLE_SIZE-1)], table[yy&(TABLE_SIZE-1)], 11, 16); rb->lcd_update(); @@ -436,7 +436,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) len = rb->strlen(SS_TITLE); rb->lcd_setfont(FONT_SYSFIXED); - rb->lcd_getstringsize(SS_TITLE,&w, &h); + rb->lcd_getstringsize((unsigned char *)SS_TITLE, &w, &h); /* Get horizontel centering for text */ len *= w; @@ -451,10 +451,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) h /= 2; rb->lcd_clear_display(); - rb->lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, SS_TITLE); + rb->lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, (unsigned char *)SS_TITLE); len = 1; - rb->lcd_getstringsize(off, &w, &h); + rb->lcd_getstringsize((unsigned char *)off, &w, &h); /* Get horizontel centering for text */ len *= w; @@ -468,7 +468,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) else h /= 2; - rb->lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), off); + rb->lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), (unsigned char *)off); rb->lcd_update(); rb->sleep(HZ); rb->lcd_set_drawmode(DRMODE_FG); |