From 36b4b39a7e34125166f8e34b3dd7b9f242388d77 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Fri, 28 May 2010 19:36:52 +0000 Subject: Apply FS#9194 - LCD invert for Sansa c200/c200v2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26362 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/lcd-c200_c200v2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/lcd-c200_c200v2.c') 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) void lcd_set_invert_display(bool yesno) { - /* TODO: Implement lcd_set_invert_display() */ +#ifdef HAVE_LCD_INVERT + lcd_send_command(R_SPEC_DISPLAY_PATTERN, yesno ? 1 : 0); +#else (void)yesno; +#endif } #if defined(HAVE_LCD_ENABLE) -- cgit v1.2.3