X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d6f6602d7cea3a7899990fe79216af7d98d05917..456ac28d25e861b4e661c88d573e3258a53d67a5:/lib/gdi/glcddc.cpp diff --git a/lib/gdi/glcddc.cpp b/lib/gdi/glcddc.cpp index 1a5e03fa..8612c70b 100644 --- a/lib/gdi/glcddc.cpp +++ b/lib/gdi/glcddc.cpp @@ -1,11 +1,13 @@ -#ifndef DISABLE_LCD - #include +#include +#include +#include gLCDDC *gLCDDC::instance; -gLCDDC::gLCDDC(eLCD *lcd): lcd(lcd) +gLCDDC::gLCDDC() { + lcd = new eDBoxLCD(); instance=this; update=1; @@ -24,6 +26,7 @@ gLCDDC::gLCDDC(eLCD *lcd): lcd(lcd) gLCDDC::~gLCDDC() { + delete lcd; instance=0; } @@ -31,9 +34,8 @@ void gLCDDC::exec(gOpcode *o) { switch (o->opcode) { -// case gOpcode::flush: - case gOpcode::end: - if (update) + case gOpcode::flush: +// if (update) lcd->update(); default: gDC::exec(o); @@ -41,14 +43,9 @@ void gLCDDC::exec(gOpcode *o) } } -gLCDDC *gLCDDC::getInstance() -{ - return instance; -} - void gLCDDC::setUpdate(int u) { update=u; } -#endif //DISABLE_LCD +eAutoInitPtr init_gLCDDC(eAutoInitNumbers::graphic-1, "gLCDDC");