quick work around for fixing return codes
[enigma2.git] / main / enigma.cpp
index 65ba4050a9e16ad38d65258ef7fdaa7847ec0870..3102c20a514f069404d6ef6096cc5305c85f933d 100644 (file)
@@ -1,7 +1,4 @@
-#undef WITH_SDL
-
 #ifdef WITH_SDL
-#error
 #define SDLDC
 #endif
 
@@ -19,7 +16,6 @@
 #include <lib/gdi/glcddc.h>
 
 #ifdef WITH_SDL
-#error
 #include <lib/gdi/sdl.h>
 #endif
 #include <lib/gdi/font.h> 
@@ -157,8 +153,6 @@ int main(int argc, char **argv)
        ePython python;
        eMain main;
        
-       int double_buffer = 0;
-
 #if 1
 #ifdef SDLDC
        ePtr<gSDLDC> my_dc;
@@ -167,7 +161,7 @@ int main(int argc, char **argv)
        ePtr<gFBDC> my_dc;
        gFBDC::getInstance(my_dc);
        
-       double_buffer = my_dc->haveDoubleBuffering();
+       int double_buffer = my_dc->haveDoubleBuffering();
 #endif
 
        ePtr<gLCDDC> my_lcd_dc;
@@ -245,6 +239,11 @@ int main(int argc, char **argv)
        printf("executing main\n");
 
        python.execute("mytest", "__main__");
+       
+       lcd_win->hide();
+       
+       dsk.paint();
+       dsk_lcd.paint();
 
        return exit_code;
 }
@@ -261,12 +260,13 @@ eApplication *getApplication()
 
 void runMainloop()
 {
-       exit_code = eApp->runLoop();
+       eApp->runLoop();
 }
 
 void quitMainloop(int exitCode)
 {
-       eApp->quit(exitCode);
+       exit_code = exitCode;
+       eApp->quit(0);
 }
 
 void setLCD(const char *string)