X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7aaacafa82484bb4f8ca44c24d365c2a1e202cdd..4ed3a1ba4db2e01d717149e350e867d23cdd1b7b:/lib/gdi/lcd.h diff --git a/lib/gdi/lcd.h b/lib/gdi/lcd.h index de495719..e7b4c2c4 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 }; @@ -56,6 +57,7 @@ public: int setLCDContrast(int contrast); int setLCDBrightness(int brightness); void setInverted( unsigned char ); + bool isOled() const { return !!is_oled; } void update(); };