Sansa clip zip: attempt to fix the pixel format swappedness for good

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30873 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2011-10-31 20:17:04 +00:00
parent d11e5201dc
commit 58543296c9
3 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@
#define LCD_WIDTH 96
#define LCD_HEIGHT 96
#define LCD_DEPTH 16 /* 65536 colours */
#define LCD_PIXELFORMAT RGB565SWAPPED
#define LCD_PIXELFORMAT RGB565
/* define this if you have LCD enable function */
#define HAVE_LCD_ENABLE

View file

@ -372,8 +372,8 @@ void lcd_write_data(const fb_data *data, int count)
while (count--) {
pixel = *data++;
lcd_write_dat((pixel >> 0) & 0xFF);
lcd_write_dat((pixel >> 8) & 0xFF);
lcd_write_dat((pixel >> 0) & 0xFF);
}
}

2
tools/configure vendored
View file

@ -2536,7 +2536,7 @@ fi
target="-DSANSA_CLIPZIP"
memory=8 # not sure
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
tool="$rootdir/tools/scramble -add=clzp"
output="rockbox.sansa"
bootoutput="bootloader-clipzip.sansa"