Server no longer uses a fixed lcd structure, but now a pointer to

a lcd_logical_driver structure (lcd_ptr).  Fixed bug in lcd.c
which caused lcd_drv_getkey_loop to act badly.
This commit is contained in:
ddouthitt
2001-09-27 16:12:55 +00:00
parent ae2f2d5638
commit eb6e99e7e8
10 changed files with 156 additions and 136 deletions
+7 -7
View File
@@ -246,7 +246,7 @@ Backlight_func (int input)
else backlight = BACKLIGHT_OPEN;
}
*/
lcd.backlight (backlight_state & BACKLIGHT_ON);
lcd_ptr->backlight (backlight_state & BACKLIGHT_ON);
return (status | MENU_OK);
}
@@ -271,7 +271,7 @@ Contrast_func (int input)
{
int status;
status = lcd.contrast (-1);
status = lcd_ptr->contrast (-1);
if (input == MENU_READ)
return status;
@@ -284,7 +284,7 @@ Contrast_func (int input)
status = 0;
if (status > 255)
status = 255;
lcd.contrast (status);
lcd_ptr->contrast (status);
return (status | MENU_OK);
}
@@ -314,7 +314,7 @@ Backlight_Brightness_func (int input)
status = 0;
if (status > 255)
status = 255;
lcd.backlight (status);
lcd_ptr->backlight (status);
backlight_brightness = status;
@@ -337,7 +337,7 @@ Backlight_Off_Brightness_func (int input)
status = 0;
if (status > 255)
status = 255;
lcd.backlight (status);
lcd_ptr->backlight (status);
backlight_off_brightness = status;
@@ -349,7 +349,7 @@ Backlight_Off_func ()
{
backlight_state = BACKLIGHT_OFF;
backlight = BACKLIGHT_OFF;
lcd.backlight (backlight_off_brightness);
lcd_ptr->backlight (backlight_off_brightness);
return MENU_OK;
}
@@ -358,7 +358,7 @@ Backlight_On_func ()
{
backlight_state = BACKLIGHT_ON;
backlight = BACKLIGHT_ON;
lcd.backlight (backlight_brightness * (backlight_state & BACKLIGHT_ON));
lcd_ptr->backlight (backlight_brightness * (backlight_state & BACKLIGHT_ON));
return MENU_OK;
}