git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
patch by Pieter Grimmerink: properly initialize and check for LCD fd
[enigma2.git]
/
lib
/
gdi
/
glcddc.h
diff --git
a/lib/gdi/glcddc.h
b/lib/gdi/glcddc.h
index 9342e5e226c91fbe5f239769707d27a4ba6acab5..6d5f383486021b598e9de05fa52b38bfff297dfb 100644
(file)
--- a/
lib/gdi/glcddc.h
+++ b/
lib/gdi/glcddc.h
@@
-1,26
+1,22
@@
-#ifndef DISABLE_LCD
-
#ifndef __glcddc_h
#define __glcddc_h
#include "grc.h"
#ifndef __glcddc_h
#define __glcddc_h
#include "grc.h"
+#include <lib/gdi/lcd.h>
-class eLCD;
-
-class gLCDDC: public gPixmapDC
+class gLCDDC: public gDC
{
eLCD *lcd;
static gLCDDC *instance;
int update;
void exec(gOpcode *opcode);
{
eLCD *lcd;
static gLCDDC *instance;
int update;
void exec(gOpcode *opcode);
+ gSurface surface;
public:
public:
- gLCDDC(
eLCD *lcd
);
+ gLCDDC();
~gLCDDC();
void setUpdate(int update);
~gLCDDC();
void setUpdate(int update);
- static gLCDDC *getInstance();
+ static int getInstance(ePtr<gLCDDC> &ptr) { if (!instance) return -1; ptr = instance; return 0; }
+ int islocked() { return lcd->islocked(); }
};
};
-
#endif
#endif
-
-#endif //DISABLE_LCD