diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-09-21 03:59:12 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-09-21 03:59:12 +0200 |
commit | 495d0ba12d140fc205fbfbe491b6ddd8d6dbe891 (patch) | |
tree | 27692236dd7fd042a75fb828d89365686616cdd0 /src/libui_sdl | |
parent | 0aa3434ec7c7416fb267ebff76535949e91bf050 (diff) |
add support for SPI shutdown, btw
Diffstat (limited to 'src/libui_sdl')
-rw-r--r-- | src/libui_sdl/Platform.cpp | 11 | ||||
-rw-r--r-- | src/libui_sdl/main.cpp | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/libui_sdl/Platform.cpp b/src/libui_sdl/Platform.cpp index 7313ae4..67f136c 100644 --- a/src/libui_sdl/Platform.cpp +++ b/src/libui_sdl/Platform.cpp @@ -44,6 +44,9 @@ #endif +void Stop(); + + namespace Platform { @@ -52,7 +55,7 @@ typedef struct { SDL_Thread* ID; void (*Func)(); - + } ThreadData; int ThreadEntry(void* data) @@ -70,6 +73,12 @@ u8 PacketBuffer[2048]; #define NIFI_VER 1*/ +void StopEmu() +{ + Stop(); +} + + void* Thread_Create(void (*func)()) { ThreadData* data = new ThreadData; diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index 396bc29..1068f92 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -272,6 +272,9 @@ void Stop() uiMenuItemDisable(MenuItem_Pause); uiMenuItemDisable(MenuItem_Reset); uiMenuItemSetChecked(MenuItem_Pause, 0); + + memset(ScreenBuffer, 256*384*4, 0); + uiAreaQueueRedrawAll(MainDrawArea); } |