diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-07-14 12:29:39 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-07-14 12:29:39 +0000 |
| commit | 4a53253592802531ff22d1baf36b9e71e9b2d4f4 (patch) | |
| tree | 26bae35248448cac383d5e59b2fa0e2c770a8838 /apps/plugins | |
| parent | e26d97658dafabe479eb249475c8508cb2eee910 (diff) | |
| download | rockbox-4a53253592802531ff22d1baf36b9e71e9b2d4f4.zip rockbox-4a53253592802531ff22d1baf36b9e71e9b2d4f4.tar.gz rockbox-4a53253592802531ff22d1baf36b9e71e9b2d4f4.tar.bz2 rockbox-4a53253592802531ff22d1baf36b9e71e9b2d4f4.tar.xz | |
fixed the right-end too, added more letters on the big screens and added
some "random" grey letters for lcds supporting it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7140 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/bounce.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c index 34625a7..03adefb 100644 --- a/apps/plugins/bounce.c +++ b/apps/plugins/bounce.c @@ -24,7 +24,7 @@ #define SS_TITLE "Bouncer" #define SS_TITLE_FONT 2 -#define LETTERS_ON_SCREEN 12 +#define LETTERS_ON_SCREEN (LCD_WIDTH/10) #define YSPEED 2 #define XSPEED 3 @@ -279,7 +279,14 @@ static void addclock(void) } #endif /* HAVE_RTC */ -#define DRAW_WIDTH (LCD_WIDTH + LETTER_WIDTH) +#define DRAW_WIDTH (LCD_WIDTH + LETTER_WIDTH*2) + +#if LCD_DEPTH > 1 +static const int face_colors[] = +{ + 0, 2*MAX_LEVEL/3, MAX_LEVEL/3 +}; +#endif static int scrollit(void) { @@ -312,7 +319,9 @@ static int scrollit(void) for(i=0, yy=y, xx=x; i< LETTERS_ON_SCREEN; i++) { letter = rock[(i+textpos) % rocklen ]; - +#if LCD_DEPTH > 1 + rb->lcd_set_foreground(face_colors[ letter % 3] ); +#endif rb->lcd_mono_bitmap((char *)char_gen_12x16[letter-0x20], xx, table[yy&(TABLE_SIZE-1)], 11, 16); yy += YADD; |