From b169804437d4632497c11bc01c6b373ee52ffea2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 30 May 2002 06:59:47 +0000 Subject: rearranged to prevent compiler warnings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@812 a1c6a512-1295-4272-9138-f99709370657 --- apps/main_menu.c | 36 ++++++++---------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) (limited to 'apps/main_menu.c') diff --git a/apps/main_menu.c b/apps/main_menu.c index 76c20305cf..df9350ad5a 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -34,9 +34,9 @@ extern void tetris(void); #endif -#ifdef HAVE_LCD_BITMAP static int show_logo(void) { +#ifdef HAVE_LCD_BITMAP unsigned char buffer[112 * 8]; int failure; @@ -57,48 +57,28 @@ static int show_logo(void) int eline; for(i=0, eline=0; i< height; i+=8, eline++) { - int x,y; - /* the bitmap function doesn't work with full-height bitmaps so we "stripe" the logo output */ - lcd_bitmap(&buffer[eline*width], 0, 10+i, width, (height-i)>8?8:height-i, false); - -#if 0 - /* for screen output debugging */ - for(y=0; y<8 && (i+y < height); y++) { - for(x=0; x < width; x++) { - - if(buffer[eline*width + x] & (1<