X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgdi%2Fglcddc.cpp;h=8ac8cd3b3a207965cc2459a00edd0d939a93bb9c;hb=841bc3b1be82929ebed8d18ea16c08690aa3c42e;hp=1a5e03fa0671d95e1fd0cf9b9327eadb70153bf2;hpb=d6f6602d7cea3a7899990fe79216af7d98d05917;p=vuplus_dvbapp diff --git a/lib/gdi/glcddc.cpp b/lib/gdi/glcddc.cpp old mode 100644 new mode 100755 index 1a5e03f..8ac8cd3 --- a/lib/gdi/glcddc.cpp +++ b/lib/gdi/glcddc.cpp @@ -1,54 +1,55 @@ -#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; surface.x=lcd->size().width(); surface.y=lcd->size().height(); - surface.bpp=8; - surface.bypp=1; surface.stride=lcd->stride(); + surface.bypp=surface.stride / surface.x; + surface.bpp=surface.bypp*8; surface.data=lcd->buffer(); - - surface.clut.colors=256; + surface.clut.colors=0; surface.clut.data=0; + m_pixmap = new gPixmap(&surface); } gLCDDC::~gLCDDC() { + delete lcd; instance=0; } -void gLCDDC::exec(gOpcode *o) +void gLCDDC::exec(const gOpcode *o) { switch (o->opcode) { -// case gOpcode::flush: - case gOpcode::end: - if (update) + case gOpcode::flush: +// if (update) +#ifndef BUILD_VUPLUS /* ikseong */ lcd->update(); +#else + ; +#endif default: gDC::exec(o); break; } } -gLCDDC *gLCDDC::getInstance() -{ - return instance; -} - void gLCDDC::setUpdate(int u) { update=u; } -#endif //DISABLE_LCD +eAutoInitPtr init_gLCDDC(eAutoInitNumbers::graphic-1, "gLCDDC");