5 #include <lib/gdi/esize.h>
6 #include <lib/gdi/erect.h>
8 #define LCD_CONTRAST_MIN 0
9 #define LCD_CONTRAST_MAX 63
10 #define LCD_BRIGHTNESS_MIN 0
11 #define LCD_BRIGHTNESS_MAX 255
20 void setSize(int xres, int yres, int bpp);
22 unsigned char *_buffer;
30 int islocked() { return locked; }
31 bool detected() { return lcdfd >= 0; }
35 __u8 *buffer() { return (__u8*)_buffer; }
36 int stride() { return _stride; }
37 eSize size() { return res; }
38 virtual void update()=0;
42 class eDBoxLCD: public eLCD
44 static eDBoxLCD *instance;
45 unsigned char inverted;
56 static eDBoxLCD *getInstance();
57 int setLCDContrast(int contrast);
58 int setLCDBrightness(int brightness);
59 void setInverted( unsigned char );
60 bool isOled() const { return !!is_oled; }