X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgdi%2Fgfbdc.cpp;h=80dd2479b52b92d97a983b5ddf38c4de6dd8b326;hb=0951e9fb3386f8f941a7756910ff7162ebb98a4a;hp=75efe891af5e82b4f9f0856c29d2636170d3cb36;hpb=9daf6014a224d717fa423130a8e04acd461efc24;p=vuplus_dvbapp diff --git a/lib/gdi/gfbdc.cpp b/lib/gdi/gfbdc.cpp index 75efe89..80dd247 100644 --- a/lib/gdi/gfbdc.cpp +++ b/lib/gdi/gfbdc.cpp @@ -131,9 +131,13 @@ void gFBDC::exec(gOpcode *o) ++t; + fb->blit(); fb->waitVSync(); break; } + case gOpcode::flush: + fb->blit(); + break; default: gDC::exec(o); break; @@ -185,7 +189,7 @@ void gFBDC::setResolution(int xres, int yres) surface.data = fb->lfb; surface.offset = 0; - surface.data_phys = 50*1024*1024; // FIXME + surface.data_phys = fb->getPhysAddr(); int fb_size = surface.stride * surface.y; @@ -239,6 +243,6 @@ void gFBDC::reloadSettings() } // eAutoInitPtr init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC"); -#ifndef SDLDC +#ifndef WITH_SDL eAutoInitPtr init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC"); #endif