diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2004-05-27 22:30:21 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2004-05-27 22:30:21 +0000 |
| commit | d6f6602d7cea3a7899990fe79216af7d98d05917 (patch) | |
| tree | 22606cee18e18a7c7830899773240a8ae9067070 /lib/gdi/glcddc.cpp | |
| parent | ae9b6fba0b02b5990fd1635a2154336c5043df02 (diff) | |
| download | enigma2-d6f6602d7cea3a7899990fe79216af7d98d05917.tar.gz enigma2-d6f6602d7cea3a7899990fe79216af7d98d05917.zip | |
yes! ich habs kaputt gemacht! (doesn't compile anymore, doesn't work anymore,
lots of work required).
Diffstat (limited to 'lib/gdi/glcddc.cpp')
| -rw-r--r-- | lib/gdi/glcddc.cpp | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/lib/gdi/glcddc.cpp b/lib/gdi/glcddc.cpp index 3895df9a..1a5e03fa 100644 --- a/lib/gdi/glcddc.cpp +++ b/lib/gdi/glcddc.cpp @@ -1,7 +1,6 @@ #ifndef DISABLE_LCD #include <lib/gdi/glcddc.h> -#include <lib/gdi/lcd.h> gLCDDC *gLCDDC::instance; @@ -11,21 +10,20 @@ gLCDDC::gLCDDC(eLCD *lcd): lcd(lcd) update=1; - pixmap=new gPixmap(); - pixmap->x=lcd->size().width(); - pixmap->y=lcd->size().height(); - pixmap->bpp=8; - pixmap->bypp=1; - pixmap->stride=lcd->stride(); - pixmap->data=lcd->buffer(); - - pixmap->clut.colors=256; - pixmap->clut.data=0; + surface.x=lcd->size().width(); + surface.y=lcd->size().height(); + surface.bpp=8; + surface.bypp=1; + surface.stride=lcd->stride(); + surface.data=lcd->buffer(); + + surface.clut.colors=256; + surface.clut.data=0; + m_pixmap = new gPixmap(&surface); } gLCDDC::~gLCDDC() { - delete pixmap; instance=0; } @@ -33,12 +31,12 @@ void gLCDDC::exec(gOpcode *o) { switch (o->opcode) { - case gOpcode::flush: +// case gOpcode::flush: case gOpcode::end: if (update) lcd->update(); default: - gPixmapDC::exec(o); + gDC::exec(o); break; } } |
