#include #include #include #include gLCDDC *gLCDDC::instance; gLCDDC::gLCDDC() { lcd = new eDBoxLCD(); instance=this; update=1; surface.x=lcd->size().width(); surface.y=lcd->size().height(); surface.stride=lcd->stride(); surface.bypp=surface.stride / surface.x; surface.bpp=surface.bypp*8; surface.data=lcd->buffer(); surface.clut.colors=0; surface.clut.data=0; m_pixmap = new gPixmap(&surface); } gLCDDC::~gLCDDC() { delete lcd; instance=0; } void gLCDDC::exec(const gOpcode *o) { switch (o->opcode) { case gOpcode::flush: // if (update) lcd->update(); default: gDC::exec(o); break; } } void gLCDDC::setUpdate(int u) { update=u; } eAutoInitPtr init_gLCDDC(eAutoInitNumbers::graphic-1, "gLCDDC");