summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config/sansaclipzip.h2
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/config/sansaclipzip.h b/firmware/export/config/sansaclipzip.h
index 4dc122656f..0ef11e572b 100644
--- a/firmware/export/config/sansaclipzip.h
+++ b/firmware/export/config/sansaclipzip.h
@@ -54,7 +54,7 @@
54#define LCD_WIDTH 96 54#define LCD_WIDTH 96
55#define LCD_HEIGHT 96 55#define LCD_HEIGHT 96
56#define LCD_DEPTH 16 /* 65536 colours */ 56#define LCD_DEPTH 16 /* 65536 colours */
57#define LCD_PIXELFORMAT RGB565 57#define LCD_PIXELFORMAT RGB565SWAPPED
58 58
59/* define this if you have LCD enable function */ 59/* define this if you have LCD enable function */
60#define HAVE_LCD_ENABLE 60#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 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}