projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote branch 'dm/experimental' into vuplus_experimental
[vuplus_dvbapp]
/
lib
/
gdi
/
glcddc.cpp
diff --git
a/lib/gdi/glcddc.cpp
b/lib/gdi/glcddc.cpp
old mode 100644
(file)
new mode 100755
(executable)
index
1a5e03f
..
8ac8cd3
--- a/
lib/gdi/glcddc.cpp
+++ b/
lib/gdi/glcddc.cpp
@@
-1,54
+1,55
@@
-#ifndef DISABLE_LCD
-
#include <lib/gdi/glcddc.h>
#include <lib/gdi/glcddc.h>
+#include <lib/gdi/lcd.h>
+#include <lib/base/init.h>
+#include <lib/base/init_num.h>
gLCDDC *gLCDDC::instance;
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();
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.stride=lcd->stride();
+ surface.bypp=surface.stride / surface.x;
+ surface.bpp=surface.bypp*8;
surface.data=lcd->buffer();
surface.data=lcd->buffer();
-
- surface.clut.colors=256;
+ surface.clut.colors=0;
surface.clut.data=0;
surface.clut.data=0;
+
m_pixmap = new gPixmap(&surface);
}
gLCDDC::~gLCDDC()
{
m_pixmap = new gPixmap(&surface);
}
gLCDDC::~gLCDDC()
{
+ delete lcd;
instance=0;
}
instance=0;
}
-void gLCDDC::exec(gOpcode *o)
+void gLCDDC::exec(
const
gOpcode *o)
{
switch (o->opcode)
{
{
switch (o->opcode)
{
-
//
case gOpcode::flush:
- case gOpcode::end:
- if (update)
+
case gOpcode::flush:
+// if (update)
+#ifndef BUILD_VUPLUS /* ikseong */
lcd->update();
lcd->update();
+#else
+ ;
+#endif
default:
gDC::exec(o);
break;
}
}
default:
gDC::exec(o);
break;
}
}
-gLCDDC *gLCDDC::getInstance()
-{
- return instance;
-}
-
void gLCDDC::setUpdate(int u)
{
update=u;
}
void gLCDDC::setUpdate(int u)
{
update=u;
}
-#endif //DISABLE_LCD
+eAutoInitPtr<gLCDDC> init_gLCDDC(eAutoInitNumbers::graphic-1, "gLCDDC");