X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5d26224540dac9315066c52dc37197dbc8e0b24e..2334840aabb952e3b6ee5cc60c368f7f2884d9dd:/main/enigma.cpp diff --git a/main/enigma.cpp b/main/enigma.cpp index 65ba4050..3102c20a 100644 --- a/main/enigma.cpp +++ b/main/enigma.cpp @@ -1,7 +1,4 @@ -#undef WITH_SDL - #ifdef WITH_SDL -#error #define SDLDC #endif @@ -19,7 +16,6 @@ #include #ifdef WITH_SDL -#error #include #endif #include @@ -157,8 +153,6 @@ int main(int argc, char **argv) ePython python; eMain main; - int double_buffer = 0; - #if 1 #ifdef SDLDC ePtr my_dc; @@ -167,7 +161,7 @@ int main(int argc, char **argv) ePtr my_dc; gFBDC::getInstance(my_dc); - double_buffer = my_dc->haveDoubleBuffering(); + int double_buffer = my_dc->haveDoubleBuffering(); #endif ePtr 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)