summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Dziok <b0hoon@o2.pl>2014-06-01 20:24:58 +0000
committerSzymon Dziok <b0hoon@o2.pl>2014-06-09 01:15:17 +0000
commit701eaa647bf498fb750866abbfa63802aa374a99 (patch)
treef5479cd6e094908cc9ea23de0debd57b41a744a7
parent8326f173f99ed8d37f97375bb380e5575267ee42 (diff)
downloadrockbox-701eaa647bf498fb750866abbfa63802aa374a99.tar.gz
rockbox-701eaa647bf498fb750866abbfa63802aa374a99.zip
Samsung YH-820: implement an inverting of colours on the lcd.
Change-Id: Ibddf444b35402f8d2a9ad8b6af9d897a6618da18
-rw-r--r--firmware/export/config/samsungyh820.h2
-rw-r--r--firmware/target/arm/samsung/yh820/lcd-yh820.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/config/samsungyh820.h b/firmware/export/config/samsungyh820.h
index 5e4c79d3ab..516b010e96 100644
--- a/firmware/export/config/samsungyh820.h
+++ b/firmware/export/config/samsungyh820.h
@@ -64,7 +64,7 @@
/* #define HAVE_LCD_FLIP */
/* define this if you can invert the colours on your LCD */
-/* todo #define HAVE_LCD_INVERT */
+#define HAVE_LCD_INVERT
/* put the lcd frame buffer in IRAM */
/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
diff --git a/firmware/target/arm/samsung/yh820/lcd-yh820.c b/firmware/target/arm/samsung/yh820/lcd-yh820.c
index 10934621d7..d6bb2a196b 100644
--- a/firmware/target/arm/samsung/yh820/lcd-yh820.c
+++ b/firmware/target/arm/samsung/yh820/lcd-yh820.c
@@ -212,8 +212,8 @@ void lcd_set_contrast(int val)
void lcd_set_invert_display(bool yesno)
{
- /* TODO: Implement lcd_set_invert_display() */
- (void)yesno;
+ lcd_send_command(R_SPEC_DISPLAY_PATTERN);
+ lcd_send_command(yesno);
}
#if defined(HAVE_LCD_ENABLE)