X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d6f6602d7cea3a7899990fe79216af7d98d05917..f5c84f0897d9aeb7a82778610bca39f77da4fa6b:/lib/gdi/gfbdc.cpp diff --git a/lib/gdi/gfbdc.cpp b/lib/gdi/gfbdc.cpp index 3247aa6a..8dc0a7d2 100644 --- a/lib/gdi/gfbdc.cpp +++ b/lib/gdi/gfbdc.cpp @@ -14,7 +14,7 @@ gFBDC::gFBDC() if (!fb->Available()) eFatal("no framebuffer available"); - fb->SetMode(720, 576, 8); + fb->SetMode(720, 576, 32); for (int y=0; y<576; y++) // make whole screen transparent memset(fb->lfb+y*fb->Stride(), 0x00, fb->Stride()); @@ -22,8 +22,8 @@ gFBDC::gFBDC() surface.type = 0; surface.x = 720; surface.y = 576; - surface.bpp = 8; - surface.bypp = 1; + surface.bpp = 32; + surface.bypp = 4; surface.stride = fb->Stride(); surface.data = fb->lfb; surface.clut.colors=256; @@ -113,11 +113,6 @@ void gFBDC::exec(gOpcode *o) } } -gFBDC *gFBDC::getInstance() -{ - return instance; -} - void gFBDC::setAlpha(int a) { alpha=a; @@ -162,4 +157,8 @@ void gFBDC::reloadSettings() setPalette(); } -eAutoInitP0 init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC"); +// eAutoInitPtr init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC"); +#ifndef SDLDC +eAutoInitPtr init_gFBDC(eAutoInitNumbers::graphic-1, "GFBDC"); +#endif +