diff options
Diffstat (limited to 'firmware/target/hosted/maemo')
-rw-r--r-- | firmware/target/hosted/maemo/maemo-thread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/hosted/maemo/maemo-thread.c b/firmware/target/hosted/maemo/maemo-thread.c index f655ed597e..6593a9faa5 100644 --- a/firmware/target/hosted/maemo/maemo-thread.c +++ b/firmware/target/hosted/maemo/maemo-thread.c @@ -23,6 +23,7 @@ #include <libhal.h> #include <libosso.h> #include <SDL_thread.h> +#include <SDL_events.h> #include "config.h" #include "system.h" @@ -213,6 +214,11 @@ void reset_poweroff_timer(void) void shutdown_hw(void) { + /* Shut down SDL event loop */ + SDL_Event event; + memset(&event, 0, sizeof(SDL_Event)); + event.type = SDL_USEREVENT; + SDL_PushEvent(&event); } void cancel_shutdown(void) |