From 58543296c967096e3814a7abf65c84296d99d499 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Mon, 31 Oct 2011 20:17:04 +0000 Subject: [PATCH] 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 --- firmware/export/config/sansaclipzip.h | 2 +- firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c | 2 +- tools/configure | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/export/config/sansaclipzip.h b/firmware/export/config/sansaclipzip.h index 0ef11e572b..4dc122656f 100644 --- a/firmware/export/config/sansaclipzip.h +++ b/firmware/export/config/sansaclipzip.h @@ -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 diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c index cc30e19fcf..53d80cbbe7 100644 --- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c +++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c @@ -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); } } diff --git a/tools/configure b/tools/configure index 31ea290e4c..5b84f8774e 100755 --- a/tools/configure +++ b/tools/configure @@ -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"