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 /main/bsod.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 'main/bsod.cpp')
| -rwxr-xr-x | main/bsod.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/main/bsod.cpp b/main/bsod.cpp index c0362832..40252c0f 100755 --- a/main/bsod.cpp +++ b/main/bsod.cpp @@ -7,10 +7,7 @@ #include <lib/base/smartptr.h> #include <lib/base/nconfig.h> #include <lib/gdi/grc.h> -#include <lib/gdi/gfbdc.h> -#ifdef WITH_SDL -#include <lib/gdi/sdl.h> -#endif +#include <lib/gdi/gmaindc.h> #include "version.h" @@ -341,13 +338,8 @@ void bsodFatal(const char *component) } -#ifdef WITH_SDL - ePtr<gSDLDC> my_dc; - gSDLDC::getInstance(my_dc); -#else - ePtr<gFBDC> my_dc; - gFBDC::getInstance(my_dc); -#endif + ePtr<gMainDC> my_dc; + gMainDC::getInstance(my_dc); { gPainter p(my_dc); |
