1
0
Fork 0
forked from len0rd/rockbox

Enable LCD invert setting in the menu for all targets that support it. This adds the menu option to H10 20GB and X5 builds.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11048 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2006-09-25 17:03:18 +00:00
parent d5429307d5
commit 2404913f45
16 changed files with 48 additions and 3 deletions

View file

@ -344,7 +344,7 @@ static bool contrast(void)
#endif /* HAVE_LCD_CONTRAST */ #endif /* HAVE_LCD_CONTRAST */
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
#ifndef HAVE_LCD_COLOR #ifdef HAVE_LCD_INVERT
/** /**
* Menu to set LCD Mode (normal/inverse) * Menu to set LCD Mode (normal/inverse)
*/ */
@ -357,7 +357,7 @@ static bool invert(void)
lcd_set_invert_display); lcd_set_invert_display);
return rc; return rc;
} }
#endif /* HAVE_LCD_COLOR */ #endif /* HAVE_LCD_INVERT */
#ifdef HAVE_LCD_FLIP #ifdef HAVE_LCD_FLIP
/** /**
@ -1868,7 +1868,7 @@ static bool lcd_settings_menu(void)
{ ID2P(LANG_CONTRAST), contrast }, { ID2P(LANG_CONTRAST), contrast },
#endif #endif
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
#ifndef HAVE_LCD_COLOR #ifdef HAVE_LCD_INVERT
{ ID2P(LANG_INVERT), invert }, { ID2P(LANG_INVERT), invert },
#endif #endif
#ifdef HAVE_LCD_FLIP #ifdef HAVE_LCD_FLIP

View file

@ -7,6 +7,9 @@
/* define this if you can flip your LCD */ /* define this if you can flip your LCD */
#define HAVE_LCD_FLIP #define HAVE_LCD_FLIP
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN
/* define this if you have access to the pitchscreen */ /* define this if you have access to the pitchscreen */

View file

@ -7,6 +7,9 @@
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP 1 #define HAVE_LCD_BITMAP 1
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have a real-time clock */ /* define this if you have a real-time clock */
#define CONFIG_RTC RTC_M41ST84W #define CONFIG_RTC RTC_M41ST84W

View file

@ -4,6 +4,9 @@
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP 1 #define HAVE_LCD_BITMAP 1
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* LCD dimensions */ /* LCD dimensions */
#define LCD_WIDTH 128 #define LCD_WIDTH 128
#define LCD_HEIGHT 64 #define LCD_HEIGHT 64

View file

@ -31,6 +31,9 @@
/* define this if you can flip your LCD */ /* define this if you can flip your LCD */
#define HAVE_LCD_FLIP #define HAVE_LCD_FLIP
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
#define CONFIG_KEYPAD IRIVER_H10_PAD #define CONFIG_KEYPAD IRIVER_H10_PAD

View file

@ -16,6 +16,9 @@
/* define this if you can flip your LCD */ /* define this if you can flip your LCD */
#define HAVE_LCD_FLIP #define HAVE_LCD_FLIP
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN
/* define this if you have access to the pitchscreen */ /* define this if you have access to the pitchscreen */

View file

@ -12,6 +12,9 @@
/* define this if you can flip your LCD */ /* define this if you can flip your LCD */
#define HAVE_LCD_FLIP #define HAVE_LCD_FLIP
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN
/* define this if you have access to the pitchscreen */ /* define this if you have access to the pitchscreen */

View file

@ -15,6 +15,9 @@
/* define this if you have a colour LCD */ /* define this if you have a colour LCD */
#define HAVE_LCD_COLOR 1 #define HAVE_LCD_COLOR 1
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN

View file

@ -12,6 +12,9 @@
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP 1 #define HAVE_LCD_BITMAP 1
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN
/* define this if you have access to the pitchscreen */ /* define this if you have access to the pitchscreen */

View file

@ -12,6 +12,9 @@
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP 1 #define HAVE_LCD_BITMAP 1
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN
/* define this if you have access to the pitchscreen */ /* define this if you have access to the pitchscreen */

View file

@ -12,6 +12,9 @@
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP 1 #define HAVE_LCD_BITMAP 1
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN
/* define this if you have access to the pitchscreen */ /* define this if you have access to the pitchscreen */

View file

@ -12,6 +12,9 @@
/* define this if you have a bitmap LCD display */ /* define this if you have a bitmap LCD display */
#define HAVE_LCD_BITMAP 1 #define HAVE_LCD_BITMAP 1
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN
/* define this if you have access to the pitchscreen */ /* define this if you have access to the pitchscreen */

View file

@ -7,6 +7,9 @@
/* define this if you can flip your LCD */ /* define this if you can flip your LCD */
#define HAVE_LCD_FLIP #define HAVE_LCD_FLIP
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* LCD dimensions */ /* LCD dimensions */
#define LCD_WIDTH 112 #define LCD_WIDTH 112
#define LCD_HEIGHT 64 #define LCD_HEIGHT 64

View file

@ -4,6 +4,9 @@
/* define this if you can flip your LCD */ /* define this if you can flip your LCD */
#define HAVE_LCD_FLIP #define HAVE_LCD_FLIP
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* LCD dimensions */ /* LCD dimensions */
#define LCD_WIDTH 112 #define LCD_WIDTH 112
#define LCD_HEIGHT 64 #define LCD_HEIGHT 64

View file

@ -7,6 +7,9 @@
/* define this if you can flip your LCD */ /* define this if you can flip your LCD */
#define HAVE_LCD_FLIP #define HAVE_LCD_FLIP
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN

View file

@ -7,6 +7,9 @@
/* define this if you can flip your LCD */ /* define this if you can flip your LCD */
#define HAVE_LCD_FLIP #define HAVE_LCD_FLIP
/* define this if you can invert the colours on your LCD */
#define HAVE_LCD_INVERT
/* define this if you have access to the quickscreen */ /* define this if you have access to the quickscreen */
#define HAVE_QUICKSCREEN #define HAVE_QUICKSCREEN