From de2f0705779386ad9a79ade0d4e874f04651ecf6 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 26 Mar 2006 17:48:12 +0000 Subject: [PATCH] Fixed the yellow builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9264 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 2 +- apps/tagcache.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/main.c b/apps/main.c index 915aec27d3..e7a01c899a 100644 --- a/apps/main.c +++ b/apps/main.c @@ -141,9 +141,9 @@ void init_dircache(void) void init_tagcache(void) { +#ifdef HAVE_LCD_BITMAP int font_w, font_h; -#ifdef HAVE_LCD_BITMAP /* Print "Scanning disk..." to the display. */ lcd_getstringsize("A", &font_w, &font_h); lcd_putsxy((LCD_WIDTH/2) - ((strlen(str(LANG_TAGCACHE_INIT))*font_w)/2), diff --git a/apps/tagcache.c b/apps/tagcache.c index f6a42d0088..850eaf9733 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -1367,7 +1367,7 @@ static void allocate_tempbuf(void) { /* Yeah, malloc would be really nice now :) */ tempbuf = (char *)(((long)audiobuf & ~0x03) + 0x04); - tempbuf_size = (int)audiobufend - (int)audiobuf - 4; + tempbuf_size = (long)audiobufend - (long)audiobuf - 4; audiobuf += tempbuf_size; }