use global preprocessor constant WITH_SDL instead of SDLDC
[enigma2.git] / lib / gdi / gfbdc.cpp
index 02ebc4ff02134c1898d1b187124424bf4e6039f4..d2f8dad25462f4b1677b401ad88fbc7c475fd736 100644 (file)
@@ -9,6 +9,13 @@
 
 gFBDC *gFBDC::instance;
 
+ePtr<gFBDC> NewgFBDCPtr(void)
+{
+       ePtr<gFBDC> ptr;
+       gFBDC::getInstance(ptr);
+       return ptr;
+}
+
 gFBDC::gFBDC()
 {
        instance=this;
@@ -127,6 +134,9 @@ void gFBDC::exec(gOpcode *o)
                fb->waitVSync();
                break;
        }
+       case gOpcode::flush:
+               fb->blit();
+               break;
        default:
                gDC::exec(o);
                break;
@@ -232,6 +242,6 @@ void gFBDC::reloadSettings()
 }
 
 // eAutoInitPtr<gFBDC> init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC");
-#ifndef SDLDC
+#ifndef WITH_SDL
 eAutoInitPtr<gFBDC> init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC");
 #endif