diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-02-28 03:24:48 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-02-28 03:24:48 +0000 |
| commit | d8f6c75ab94ee97e9a49ce669d74dc252225586a (patch) | |
| tree | f2eee157a098402ed5ae05866505bfa0e0a20d2b /uisimulator | |
| parent | d69d406e096d9df587e9b263cc16553d17b63162 (diff) | |
| download | rockbox-d8f6c75ab94ee97e9a49ce669d74dc252225586a.zip rockbox-d8f6c75ab94ee97e9a49ce669d74dc252225586a.tar.gz rockbox-d8f6c75ab94ee97e9a49ce669d74dc252225586a.tar.bz2 rockbox-d8f6c75ab94ee97e9a49ce669d74dc252225586a.tar.xz | |
Hopefully get shutdown/exit handling on SDL/maemo right.
Make shutdown_hw() not return as it's supposed to, ensure sim_do_exit() is called from main thread and move sim_kernel_shutdown() into it to simplify things.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29455 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
| -rw-r--r-- | uisimulator/common/powermgmt-sim.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/uisimulator/common/powermgmt-sim.c b/uisimulator/common/powermgmt-sim.c index 30b04d6..12bb94f 100644 --- a/uisimulator/common/powermgmt-sim.c +++ b/uisimulator/common/powermgmt-sim.c @@ -24,7 +24,6 @@ #include <time.h> #include "kernel.h" #include "powermgmt.h" -#include <SDL_events.h> #define BATT_MINMVOLT 2500 /* minimum millivolts of battery */ #define BATT_MAXMVOLT 4500 /* maximum millivolts of battery */ @@ -154,15 +153,6 @@ 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) { } |