forked from len0rd/rockbox
Okay, this should be the last. I'm sorry for the trouble, but now everything *should* be properly #ifdef'd (which wasn't before) :/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20336 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9771c9c771
commit
d0e834aa73
3 changed files with 5 additions and 5 deletions
|
@ -187,6 +187,7 @@ void lcd_init_device(void)
|
|||
lcd_contrast = DEFAULT_CONTRAST_SETTING << 8;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LCD_SLEEP
|
||||
static void lcd_power_on(void)
|
||||
{
|
||||
/* Be sure standby bit is clear. */
|
||||
|
@ -274,7 +275,6 @@ static void lcd_power_on(void)
|
|||
power_on = true;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LCD_SLEEP
|
||||
static void lcd_power_off(void)
|
||||
{
|
||||
/* Display must be off first */
|
||||
|
@ -314,7 +314,7 @@ void lcd_sleep(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(HAVE_LCD_ENABLE)
|
||||
static void lcd_display_off(void)
|
||||
{
|
||||
display_on = false;
|
||||
|
@ -337,8 +337,6 @@ static void lcd_display_off(void)
|
|||
/* PT1-0=00, VLE2-1=00, SPT=0, GON=0, DTE=0, REV=0, D1-0=00 */
|
||||
lcd_write_reg(R_DISP_CONTROL, 0x0000);
|
||||
}
|
||||
|
||||
#if defined(HAVE_LCD_ENABLE)
|
||||
static void lcd_display_on(void)
|
||||
{
|
||||
/* Be sure power is on first */
|
||||
|
|
|
@ -29,7 +29,9 @@
|
|||
#define LCDADDR(x, y) (&lcd_framebuffer[(y)][(x)])
|
||||
|
||||
static bool lcd_on = true;
|
||||
#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
|
||||
static bool lcd_powered = true;
|
||||
#endif
|
||||
static unsigned lcd_yuv_options = 0;
|
||||
/*
|
||||
** This is imported from lcd-16bit.c
|
||||
|
|
|
@ -191,6 +191,7 @@ static void lcd_display_on(bool reset)
|
|||
display_on = true;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LCD_ENABLE
|
||||
static void lcd_display_off(void)
|
||||
{
|
||||
/* LQV shutdown sequence */
|
||||
|
@ -225,7 +226,6 @@ static void lcd_display_off(void)
|
|||
display_on = false;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LCD_ENABLE
|
||||
void lcd_enable(bool on)
|
||||
{
|
||||
/* Disabled until properly working */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue