diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-05-28 19:36:52 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-05-28 19:36:52 +0000 |
commit | 36b4b39a7e34125166f8e34b3dd7b9f242388d77 (patch) | |
tree | 10100b6f55fd3c91e113a361374b7ed48162e355 | |
parent | 36c6f3d13fcd401fa01edde63e09d9b4a02e34f7 (diff) | |
download | rockbox-36b4b39a7e34125166f8e34b3dd7b9f242388d77.tar.gz rockbox-36b4b39a7e34125166f8e34b3dd7b9f242388d77.zip |
Apply FS#9194 - LCD invert for Sansa c200/c200v2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26362 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/config/sansac200.h | 2 | ||||
-rw-r--r-- | firmware/export/config/sansac200v2.h | 2 | ||||
-rw-r--r-- | firmware/target/arm/lcd-c200_c200v2.c | 5 |
3 files changed, 6 insertions, 3 deletions
diff --git a/firmware/export/config/sansac200.h b/firmware/export/config/sansac200.h index f01c664533..5905b6a3f9 100644 --- a/firmware/export/config/sansac200.h +++ b/firmware/export/config/sansac200.h | |||
@@ -65,7 +65,7 @@ | |||
65 | #define HAVE_LCD_FLIP | 65 | #define HAVE_LCD_FLIP |
66 | 66 | ||
67 | /* define this if you can invert the colours on your LCD */ | 67 | /* define this if you can invert the colours on your LCD */ |
68 | /* TODO: #define HAVE_LCD_INVERT */ | 68 | #define HAVE_LCD_INVERT |
69 | 69 | ||
70 | /* Define this if your LCD can set contrast */ | 70 | /* Define this if your LCD can set contrast */ |
71 | #define HAVE_LCD_CONTRAST | 71 | #define HAVE_LCD_CONTRAST |
diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h index ff68e971a1..1c5008c64b 100644 --- a/firmware/export/config/sansac200v2.h +++ b/firmware/export/config/sansac200v2.h | |||
@@ -65,7 +65,7 @@ | |||
65 | #define HAVE_LCD_FLIP | 65 | #define HAVE_LCD_FLIP |
66 | 66 | ||
67 | /* define this if you can invert the colours on your LCD */ | 67 | /* define this if you can invert the colours on your LCD */ |
68 | /* TODO: #define HAVE_LCD_INVERT */ | 68 | #define HAVE_LCD_INVERT |
69 | 69 | ||
70 | /* Define this if your LCD can set contrast */ | 70 | /* Define this if your LCD can set contrast */ |
71 | #define HAVE_LCD_CONTRAST | 71 | #define HAVE_LCD_CONTRAST |
diff --git a/firmware/target/arm/lcd-c200_c200v2.c b/firmware/target/arm/lcd-c200_c200v2.c index e713214f6f..062ed08d62 100644 --- a/firmware/target/arm/lcd-c200_c200v2.c +++ b/firmware/target/arm/lcd-c200_c200v2.c | |||
@@ -262,8 +262,11 @@ void lcd_set_contrast(int val) | |||
262 | 262 | ||
263 | void lcd_set_invert_display(bool yesno) | 263 | void lcd_set_invert_display(bool yesno) |
264 | { | 264 | { |
265 | /* TODO: Implement lcd_set_invert_display() */ | 265 | #ifdef HAVE_LCD_INVERT |
266 | lcd_send_command(R_SPEC_DISPLAY_PATTERN, yesno ? 1 : 0); | ||
267 | #else | ||
266 | (void)yesno; | 268 | (void)yesno; |
269 | #endif | ||
267 | } | 270 | } |
268 | 271 | ||
269 | #if defined(HAVE_LCD_ENABLE) | 272 | #if defined(HAVE_LCD_ENABLE) |