diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-09-01 00:29:38 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-09-01 00:29:38 +0000 |
| commit | b8e9b51fb1a75b1805cf3108ffdc22aff9f75cf2 (patch) | |
| tree | 26659ac83b322549e2d842a2426f421c3da412e7 /lib/gdi/glcddc.cpp | |
| parent | 5ec9643747ed0dc24917ddac6310be0e49f74ce5 (diff) | |
| download | enigma2-b8e9b51fb1a75b1805cf3108ffdc22aff9f75cf2.tar.gz enigma2-b8e9b51fb1a75b1805cf3108ffdc22aff9f75cf2.zip | |
- reenable lcd support
Diffstat (limited to 'lib/gdi/glcddc.cpp')
| -rw-r--r-- | lib/gdi/glcddc.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/gdi/glcddc.cpp b/lib/gdi/glcddc.cpp index 1a5e03fa..75d256e2 100644 --- a/lib/gdi/glcddc.cpp +++ b/lib/gdi/glcddc.cpp @@ -1,11 +1,13 @@ -#ifndef DISABLE_LCD - #include <lib/gdi/glcddc.h> +#include <lib/gdi/lcd.h> +#include <lib/base/init.h> +#include <lib/base/init_num.h> gLCDDC *gLCDDC::instance; -gLCDDC::gLCDDC(eLCD *lcd): lcd(lcd) +gLCDDC::gLCDDC() { + lcd = new eDBoxLCD(); instance=this; update=1; @@ -24,16 +26,18 @@ gLCDDC::gLCDDC(eLCD *lcd): lcd(lcd) gLCDDC::~gLCDDC() { + delete lcd; instance=0; } void gLCDDC::exec(gOpcode *o) { + eDebug("gLCDDC exec!!! %d", o->opcode); switch (o->opcode) { -// case gOpcode::flush: - case gOpcode::end: - if (update) + case gOpcode::flush: + eDebug("END! WRITE!"); +// if (update) lcd->update(); default: gDC::exec(o); @@ -41,14 +45,9 @@ void gLCDDC::exec(gOpcode *o) } } -gLCDDC *gLCDDC::getInstance() -{ - return instance; -} - void gLCDDC::setUpdate(int u) { update=u; } -#endif //DISABLE_LCD +eAutoInitPtr<gLCDDC> init_gLCDDC(eAutoInitNumbers::graphic-1, "gLCDDC"); |
