summaryrefslogtreecommitdiff
path: root/apps/credits.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-12 13:33:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-12 13:33:59 +0000
commit93b231c69366563ba441dc4907bfb036fe3b4c55 (patch)
tree0783ad028211f59e63925a354e4260a7209ffa24 /apps/credits.c
parent5ed78ea80cdaa0ede4df89568f0781fa477a5738 (diff)
downloadrockbox-93b231c69366563ba441dc4907bfb036fe3b4c55.tar.gz
rockbox-93b231c69366563ba441dc4907bfb036fe3b4c55.zip
Greg Haerr's new loadable font. No more #ifdef font-style, removed old
propfont and loadable font code. New font file format. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2269 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/credits.c')
-rw-r--r--apps/credits.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/credits.c b/apps/credits.c
index f3bbd5992b..f8b060f31c 100644
--- a/apps/credits.c
+++ b/apps/credits.c
@@ -19,6 +19,7 @@
19 19
20#include "credits.h" 20#include "credits.h"
21#include "lcd.h" 21#include "lcd.h"
22#include "font.h"
22#include "kernel.h" 23#include "kernel.h"
23#include "button.h" 24#include "button.h"
24#include "sprintf.h" 25#include "sprintf.h"
@@ -64,6 +65,7 @@ char* credits[] = {
64 "Chad Lockwood", 65 "Chad Lockwood",
65 "John Pybus", 66 "John Pybus",
66 "Randy Wood", 67 "Randy Wood",
68 "Gregory Haerr",
67}; 69};
68 70
69#ifdef HAVE_LCD_BITMAP 71#ifdef HAVE_LCD_BITMAP
@@ -111,15 +113,15 @@ void roll_credits(void)
111 int height; 113 int height;
112 int width; 114 int width;
113 115
114 lcd_getfontsize(0, &width, &height); 116 lcd_getfontsize(FONT_UI, &width, &height);
115 117
116 while(1) { 118 while(1) {
117 lcd_clear_display(); 119 lcd_clear_display();
118 for ( i=0; i <= (64-y)/height; i++ ) 120 for ( i=0; i <= (64-y)/height; i++ )
119 lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"", 0); 121 lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"", FONT_UI);
120 snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ", 122 snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ",
121 line+1, numnames); 123 line+1, numnames);
122 lcd_putsxy(0, 0, buffer, 0); 124 lcd_putsxy(0, 0, buffer, FONT_UI);
123 lcd_update(); 125 lcd_update();
124 126
125 if (button_get_w_tmo(HZ/20)) 127 if (button_get_w_tmo(HZ/20))