summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-10-29 22:36:47 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-10-29 22:36:47 +0000
commit94fc46b730d72dc54c51b206b42053b8d663bd4b (patch)
treea3c6de10c22ace23acc1ceee53bf078835970ec3 /firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
parent4cab9f26b64f94ad0d09419d373155a8f77009b1 (diff)
downloadrockbox-94fc46b730d72dc54c51b206b42053b8d663bd4b.tar.gz
rockbox-94fc46b730d72dc54c51b206b42053b8d663bd4b.tar.bz2
rockbox-94fc46b730d72dc54c51b206b42053b8d663bd4b.zip
Sansa clip zip: fix colours of icons, logos, album art
* configure display for RGB (instead of BGR) colour coding * fix logo bitmap to correct size of 96x30 * fix pixel format to RGB565 swapped git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30859 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c')
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
index 0ae049b6ff..49a8014005 100644
--- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
+++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
@@ -185,7 +185,7 @@ static void lcd_init_type1(void)
lcd_write_dat(0x03);
lcd_write_cmd(0x05);
- lcd_write_dat(0x08);
+ lcd_write_dat(0x00); /* 0x08 results in BGR colour */
lcd_write_cmd(0x06);
lcd_write_dat(0x00);
@@ -403,8 +403,8 @@ void lcd_update_rect(int x, int y, int width, int height)
ptr = &lcd_framebuffer[row][x];
for (col = x; col < x_end; col++) {
pixel = *ptr++;
- lcd_write_dat((pixel >> 8) & 0xFF);
lcd_write_dat((pixel >> 0) & 0xFF);
+ lcd_write_dat((pixel >> 8) & 0xFF);
}
}
}