diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2010-10-29 14:54:36 +0200 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2010-11-16 17:15:38 +0100 |
| commit | 059c9a03c8cc02b0c595e3a5599be04dc157f725 (patch) | |
| tree | 8ce10b7cb512ab1e1b49f4e10562aa5d83c433c0 /lib/gdi/gfbdc.cpp | |
| parent | e8164a09377e89aeb0c208c12b979811d5bc33fe (diff) | |
| download | enigma2-059c9a03c8cc02b0c595e3a5599be04dc157f725.tar.gz enigma2-059c9a03c8cc02b0c595e3a5599be04dc157f725.zip | |
Add abstract class gMainDC as an interface for gFBDC and gSDLDC
Diffstat (limited to 'lib/gdi/gfbdc.cpp')
| -rw-r--r-- | lib/gdi/gfbdc.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/gdi/gfbdc.cpp b/lib/gdi/gfbdc.cpp index 80dd2479..a4f65ebc 100644 --- a/lib/gdi/gfbdc.cpp +++ b/lib/gdi/gfbdc.cpp @@ -7,18 +7,8 @@ #include <time.h> -gFBDC *gFBDC::instance; - -ePtr<gFBDC> NewgFBDCPtr(void) -{ - ePtr<gFBDC> ptr; - gFBDC::getInstance(ptr); - return ptr; -} - gFBDC::gFBDC() { - instance=this; fb=new fbClass; if (!fb->Available()) @@ -34,7 +24,6 @@ gFBDC::~gFBDC() { delete fb; delete[] surface.clut.data; - instance=0; } void gFBDC::calcRamp() @@ -91,7 +80,7 @@ void gFBDC::setPalette() fb->PutCMAP(); } -void gFBDC::exec(gOpcode *o) +void gFBDC::exec(const gOpcode *o) { switch (o->opcode) { @@ -242,7 +231,4 @@ void gFBDC::reloadSettings() setPalette(); } -// eAutoInitPtr<gFBDC> init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC"); -#ifndef WITH_SDL eAutoInitPtr<gFBDC> init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC"); -#endif |
