summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
diff options
context:
space:
mode:
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)
185 lcd_write_dat(0x03); 185 lcd_write_dat(0x03);
186 186
187 lcd_write_cmd(0x05); 187 lcd_write_cmd(0x05);
188 lcd_write_dat(0x08); 188 lcd_write_dat(0x00); /* 0x08 results in BGR colour */
189 189
190 lcd_write_cmd(0x06); 190 lcd_write_cmd(0x06);
191 lcd_write_dat(0x00); 191 lcd_write_dat(0x00);
@@ -403,8 +403,8 @@ void lcd_update_rect(int x, int y, int width, int height)
403 ptr = &lcd_framebuffer[row][x]; 403 ptr = &lcd_framebuffer[row][x];
404 for (col = x; col < x_end; col++) { 404 for (col = x; col < x_end; col++) {
405 pixel = *ptr++; 405 pixel = *ptr++;
406 lcd_write_dat((pixel >> 8) & 0xFF);
407 lcd_write_dat((pixel >> 0) & 0xFF); 406 lcd_write_dat((pixel >> 0) & 0xFF);
407 lcd_write_dat((pixel >> 8) & 0xFF);
408 } 408 }
409 } 409 }
410} 410}