summaryrefslogtreecommitdiff
path: root/apps/main_menu.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-09-24 18:04:15 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-09-24 18:04:15 +0000
commita4c3b03f15eefd516224e429215258bffa0221de (patch)
tree84ab843fdeaed0010f09a5de80ba679258e4fcd3 /apps/main_menu.c
parent614272c45f6235b01685d3aa48b5a154f9362c10 (diff)
downloadrockbox-a4c3b03f15eefd516224e429215258bffa0221de.tar.gz
rockbox-a4c3b03f15eefd516224e429215258bffa0221de.zip
Removed lcd_getfontsize(). Removed font parameters to lcd_putsxy and lcd_getstringsize.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2403 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main_menu.c')
-rw-r--r--apps/main_menu.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index 199dca66e7..aa87ed39a3 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -88,20 +88,20 @@ int show_logo( void )
88 88
89 debugf("read_bmp_file() returned %d, width %d height %d\n", 89 debugf("read_bmp_file() returned %d, width %d height %d\n",
90 failure, width, height); 90 failure, width, height);
91 91
92 for(i=0, eline=0; i < height; i+=8, eline++) { 92 for(i=0, eline=0; i < height; i+=8, eline++) {
93 /* the bitmap function doesn't work with full-height bitmaps 93 /* the bitmap function doesn't work with full-height bitmaps
94 so we "stripe" the logo output */ 94 so we "stripe" the logo output */
95 lcd_bitmap(&buffer[eline*width], 0, 10+i, width, 95 lcd_bitmap(&buffer[eline*width], 0, 10+i, width,
96 (height-i)>8?8:height-i, false); 96 (height-i)>8?8:height-i, false);
97 }
98 } 97 }
99#endif 98#endif
100 99
101 snprintf(version, sizeof(version), "Ver. %s", appsversion); 100 snprintf(version, sizeof(version), "Ver. %s", appsversion);
102 lcd_getfontsize(FONT_SYSFIXED, &font_w, &font_h); 101 lcd_setfont(FONT_SYSFIXED);
102 lcd_getstringsize("A", &font_w, &font_h);
103 lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2), 103 lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2),
104 LCD_HEIGHT-font_h, version, FONT_SYSFIXED); 104 LCD_HEIGHT-font_h, version);
105 lcd_update(); 105 lcd_update();
106 106
107#else 107#else