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
This commit is contained in:
Daniel Stenberg 2005-07-14 12:29:39 +00:00
parent e26d97658d
commit 4a53253592

View file

@ -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;