7 #include <lib/gdi/esize.h>
8 #include <lib/gdi/erect.h>
10 #define LCD_CONTRAST_MIN 0
11 #define LCD_CONTRAST_MAX 63
12 #define LCD_BRIGHTNESS_MIN 0
13 #define LCD_BRIGHTNESS_MAX 255
19 unsigned char *_buffer;
26 int islocked() { return locked; }
31 __u8 *buffer() { return (__u8*)_buffer; }
32 int stride() { return _stride; }
33 eSize size() { return res; }
35 virtual void update()=0;
38 class eDBoxLCD: public eLCD
40 static eDBoxLCD *instance;
41 unsigned char inverted;
43 static eDBoxLCD *getInstance();
44 int switchLCD(int state);
45 int setLCDParameter(int brightness, int contrast);
46 void setInverted( unsigned char );