Support turbo2.
[vuplus_dvbapp] / lib / gdi / glcddc.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 8612c70..07bd910
@@ -14,13 +14,13 @@ gLCDDC::gLCDDC()
 
        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);
 }
 
@@ -30,13 +30,17 @@ gLCDDC::~gLCDDC()
        instance=0;
 }
 
-void gLCDDC::exec(gOpcode *o)
+void gLCDDC::exec(const gOpcode *o)
 {
        switch (o->opcode)
        {
        case gOpcode::flush:
 //             if (update)
+#ifndef BUILD_VUPLUS
                        lcd->update();
+#else
+                       ;
+#endif
        default:
                gDC::exec(o);
                break;