X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgdi%2Flcd.h;h=e7b4c2c47149be77d2d29de680c1ffc7379ba832;hb=7ff071c7f0df631ca273d7f29472f8b5568818f9;hp=11749c64a2ec99ce35770120c650e086c1f73aa5;hpb=85f2616ef78700cf2639992abaf1011ecaa897bd;p=vuplus_dvbapp diff --git a/lib/gdi/lcd.h b/lib/gdi/lcd.h index 11749c6..e7b4c2c 100644 --- a/lib/gdi/lcd.h +++ b/lib/gdi/lcd.h @@ -13,10 +13,11 @@ class eLCD { #ifdef SWIG - eLCD(eSize size); + eLCD(); ~eLCD(); #else protected: + void setSize(int xres, int yres, int bpp); eSize res; unsigned char *_buffer; int lcdfd; @@ -27,13 +28,13 @@ public: int lock(); void unlock(); int islocked() { return locked; } + bool detected() { return lcdfd >= 0; } #ifndef SWIG - eLCD(eSize size); + eLCD(); virtual ~eLCD(); __u8 *buffer() { return (__u8*)_buffer; } int stride() { return _stride; } eSize size() { return res; } - virtual void update()=0; #endif }; @@ -42,6 +43,7 @@ class eDBoxLCD: public eLCD { static eDBoxLCD *instance; unsigned char inverted; + int is_oled; #ifdef SWIG eDBoxLCD(); ~eDBoxLCD(); @@ -52,9 +54,10 @@ public: ~eDBoxLCD(); #endif static eDBoxLCD *getInstance(); - int eDBoxLCD::setLCDContrast(int contrast); - int eDBoxLCD::setLCDBrightness(int brightness); + int setLCDContrast(int contrast); + int setLCDBrightness(int brightness); void setInverted( unsigned char ); + bool isOled() const { return !!is_oled; } void update(); };