1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by Robert Hak <rhak at ramapo.edu>
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
28 #include "credits.raw" /* generated list of names from docs/CREDITS */
31 #ifdef HAVE_LCD_BITMAP
33 #define DISPLAY_TIME HZ*2
36 #define DISPLAY_TIME HZ
39 #ifdef HAVE_LCD_CHARCELLS
40 void roll_credits(void)
44 int numnames
= sizeof(credits
)/sizeof(char*);
48 for ( i
=0; i
< numnames
; i
+= MAX_LINES
)
51 for(line
= 0;line
< MAX_LINES
&& line
+i
< numnames
;line
++)
53 lcd_puts(0, line
, credits
[line
+i
]);
56 /* abort on keypress */
57 if (button_get_w_tmo(DISPLAY_TIME
))
64 void roll_credits(void)
68 int numnames
= sizeof(credits
)/sizeof(char*);
78 lcd_getstringsize("A", &width
, &height
);
82 for ( i
=0; i
<= (64-y
)/height
; i
++ )
83 lcd_putsxy(0, i
*height
+y
, line
+i
<numnames
?credits
[line
+i
]:"");
84 snprintf(buffer
, sizeof(buffer
), " [Credits] %2d/%2d ",
86 lcd_clearrect(0, 0, LCD_WIDTH
, height
);
87 lcd_putsxy(0, 0, buffer
);
90 if (button_get_w_tmo(HZ
/20))