summaryrefslogtreecommitdiff
path: root/apps/credits.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/credits.c')
-rw-r--r--apps/credits.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/apps/credits.c b/apps/credits.c
index f8b060f31c..5743f2e7a5 100644
--- a/apps/credits.c
+++ b/apps/credits.c
@@ -113,28 +113,28 @@ void roll_credits(void)
113 int height; 113 int height;
114 int width; 114 int width;
115 115
116 lcd_getfontsize(FONT_UI, &width, &height); 116 lcd_getstringsize("A", &width, &height);
117 117
118 while(1) { 118 while(1) {
119 lcd_clear_display(); 119 lcd_clear_display();
120 for ( i=0; i <= (64-y)/height; i++ ) 120 for ( i=0; i <= (64-y)/height; i++ )
121 lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"", FONT_UI); 121 lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"");
122 snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ", 122 snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ",
123 line+1, numnames); 123 line+1, numnames);
124 lcd_putsxy(0, 0, buffer, FONT_UI); 124 lcd_putsxy(0, 0, buffer);
125 lcd_update(); 125 lcd_update();
126 126
127 if (button_get_w_tmo(HZ/20)) 127 if (button_get_w_tmo(HZ/20))
128 return; 128 return;
129 129
130 y--; 130 y--;
131 131
132 if(y<0) { 132 if(y<0) {
133 line++; 133 line++;
134 if(line >= numnames) 134 if(line >= numnames)
135 break; 135 break;
136 y+=height; 136 y+=height;
137 } 137 }
138 138
139 } 139 }
140 return; 140 return;