diff options
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 1bf8b3b34d..3a44a4cc46 100644 --- a/apps/plugins/bounce.c +++ b/apps/plugins/bounce.c | |||
@@ -325,7 +325,7 @@ static int scrollit(void) | |||
325 | #if LCD_DEPTH > 1 | 325 | #if LCD_DEPTH > 1 |
326 | rb->lcd_set_foreground(face_colors[ letter % 3] ); | 326 | rb->lcd_set_foreground(face_colors[ letter % 3] ); |
327 | #endif | 327 | #endif |
328 | rb->lcd_mono_bitmap((char *)char_gen_12x16[letter-0x20], | 328 | rb->lcd_mono_bitmap(char_gen_12x16[letter-0x20], |
329 | xx, table[yy&(TABLE_SIZE-1)], 11, 16); | 329 | xx, table[yy&(TABLE_SIZE-1)], 11, 16); |
330 | yy += YADD; | 330 | yy += YADD; |
331 | xx+= DRAW_WIDTH/LETTERS_ON_SCREEN; | 331 | xx+= DRAW_WIDTH/LETTERS_ON_SCREEN; |
@@ -407,13 +407,13 @@ static int loopit(void) | |||
407 | } | 407 | } |
408 | rb->snprintf(buffer, 30, "%s: %d", | 408 | rb->snprintf(buffer, 30, "%s: %d", |
409 | values[show].what, values[show].num); | 409 | values[show].what, values[show].num); |
410 | rb->lcd_putsxy(0, LCD_HEIGHT - 8, buffer); | 410 | rb->lcd_putsxy(0, LCD_HEIGHT - 8, (unsigned char *)buffer); |
411 | timeout--; | 411 | timeout--; |
412 | } | 412 | } |
413 | for(i=0, yy=y, xx=x; | 413 | for(i=0, yy=y, xx=x; |
414 | i<rocklen; | 414 | i<rocklen; |
415 | i++, yy+=values[NUM_YDIST].num, xx+=values[NUM_XDIST].num) | 415 | i++, yy+=values[NUM_YDIST].num, xx+=values[NUM_XDIST].num) |
416 | rb->lcd_mono_bitmap((char *)char_gen_12x16[rock[i]-0x20], | 416 | rb->lcd_mono_bitmap(char_gen_12x16[rock[i]-0x20], |
417 | xtable[xx&(TABLE_SIZE-1)], | 417 | xtable[xx&(TABLE_SIZE-1)], |
418 | table[yy&(TABLE_SIZE-1)], 11, 16); | 418 | table[yy&(TABLE_SIZE-1)], 11, 16); |
419 | rb->lcd_update(); | 419 | rb->lcd_update(); |
@@ -436,7 +436,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
436 | 436 | ||
437 | len = rb->strlen(SS_TITLE); | 437 | len = rb->strlen(SS_TITLE); |
438 | rb->lcd_setfont(FONT_SYSFIXED); | 438 | rb->lcd_setfont(FONT_SYSFIXED); |
439 | rb->lcd_getstringsize(SS_TITLE,&w, &h); | 439 | rb->lcd_getstringsize((unsigned char *)SS_TITLE, &w, &h); |
440 | 440 | ||
441 | /* Get horizontel centering for text */ | 441 | /* Get horizontel centering for text */ |
442 | len *= w; | 442 | len *= w; |
@@ -451,10 +451,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
451 | h /= 2; | 451 | h /= 2; |
452 | 452 | ||
453 | rb->lcd_clear_display(); | 453 | rb->lcd_clear_display(); |
454 | rb->lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, SS_TITLE); | 454 | rb->lcd_putsxy(LCD_WIDTH/2-len, (LCD_HEIGHT/2)-h, (unsigned char *)SS_TITLE); |
455 | 455 | ||
456 | len = 1; | 456 | len = 1; |
457 | rb->lcd_getstringsize(off, &w, &h); | 457 | rb->lcd_getstringsize((unsigned char *)off, &w, &h); |
458 | 458 | ||
459 | /* Get horizontel centering for text */ | 459 | /* Get horizontel centering for text */ |
460 | len *= w; | 460 | len *= w; |
@@ -468,7 +468,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
468 | else | 468 | else |
469 | h /= 2; | 469 | h /= 2; |
470 | 470 | ||
471 | rb->lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), off); | 471 | rb->lcd_putsxy(LCD_WIDTH/2-len, LCD_HEIGHT-(2*h), (unsigned char *)off); |
472 | rb->lcd_update(); | 472 | rb->lcd_update(); |
473 | rb->sleep(HZ); | 473 | rb->sleep(HZ); |
474 | rb->lcd_set_drawmode(DRMODE_FG); | 474 | rb->lcd_set_drawmode(DRMODE_FG); |