From b8e9b51fb1a75b1805cf3108ffdc22aff9f75cf2 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 1 Sep 2005 00:29:38 +0000 Subject: - reenable lcd support --- lib/gdi/glcddc.cpp | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'lib/gdi/glcddc.cpp') 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 +#include +#include +#include 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 init_gLCDDC(eAutoInitNumbers::graphic-1, "gLCDDC"); -- cgit v1.2.3