From 495d0ba12d140fc205fbfbe491b6ddd8d6dbe891 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Thu, 21 Sep 2017 03:59:12 +0200 Subject: add support for SPI shutdown, btw --- src/libui_sdl/Platform.cpp | 11 ++++++++++- src/libui_sdl/main.cpp | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'src/libui_sdl') 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); } -- cgit v1.2.3