fix for SDL, doesn't display any text on the blue screen though...
authorAndreas Oberritter <obi@opendreambox.org>
Wed, 26 Mar 2008 18:03:30 +0000 (18:03 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Wed, 26 Mar 2008 18:03:30 +0000 (18:03 +0000)
main/bsod.cpp

index 5eb6b129681a0d0801f699dbf51592c85f66b90e..3352a29e9276442a2061380dda826693febbc6fd 100644 (file)
@@ -6,6 +6,9 @@
 #include <lib/base/smartptr.h>
 #include <lib/gdi/grc.h>
 #include <lib/gdi/gfbdc.h>
+#ifdef WITH_SDL
+#include <lib/gdi/sdl.h>
+#endif
 
 #include "version.h"
 
@@ -92,8 +95,13 @@ void bsodFatal()
                system(cmd);
        }
        
+#ifdef WITH_SDL
+       ePtr<gSDLDC> my_dc;
+       gSDLDC::getInstance(my_dc);
+#else
        ePtr<gFBDC> my_dc;
        gFBDC::getInstance(my_dc);
+#endif
        
        {
                gPainter p(my_dc);