projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use area.empty instead of manual checks, allocate palette in 8bit modes
[vuplus_dvbapp]
/
lib
/
gdi
/
lcd.h
diff --git
a/lib/gdi/lcd.h
b/lib/gdi/lcd.h
index
6ee4dbe
..
99f921b
100644
(file)
--- a/
lib/gdi/lcd.h
+++ b/
lib/gdi/lcd.h
@@
-27,6
+27,7
@@
public:
int lock();
void unlock();
int islocked() { return locked; }
int lock();
void unlock();
int islocked() { return locked; }
+ bool detected() { return lcdfd >= 0; }
#ifndef SWIG
eLCD(eSize size);
virtual ~eLCD();
#ifndef SWIG
eLCD(eSize size);
virtual ~eLCD();
@@
-42,6
+43,7
@@
class eDBoxLCD: public eLCD
{
static eDBoxLCD *instance;
unsigned char inverted;
{
static eDBoxLCD *instance;
unsigned char inverted;
+ int is_oled;
#ifdef SWIG
eDBoxLCD();
~eDBoxLCD();
#ifdef SWIG
eDBoxLCD();
~eDBoxLCD();
@@
-55,6
+57,7
@@
public:
int setLCDContrast(int contrast);
int setLCDBrightness(int brightness);
void setInverted( unsigned char );
int setLCDContrast(int contrast);
int setLCDBrightness(int brightness);
void setInverted( unsigned char );
+ bool isOled() const { return !!is_oled; }
void update();
};
void update();
};