UI: Add simple support for a custom background.

No UI.  Essentially, this is a cleaned up version of xiushudongfang's
implementation that supports all platforms, but no selection UI.
This commit is contained in:
Unknown W. Brackets
2017-03-26 07:52:46 -07:00
parent 67fb745278
commit 8f4d1634ad
5 changed files with 40 additions and 14 deletions
+6 -2
View File
@@ -633,6 +633,8 @@ void NativeInitGraphics(GraphicsContext *graphicsContext) {
screenManager->setUIContext(uiContext);
screenManager->setDrawContext(g_draw);
UIBackgroundInit(*uiContext);
#ifdef _WIN32
winAudioBackend = CreateAudioBackend((AudioBackendType)g_Config.iAudioBackend);
#if PPSSPP_PLATFORM(UWP)
@@ -651,17 +653,19 @@ void NativeShutdownGraphics() {
#ifdef _WIN32
delete winAudioBackend;
winAudioBackend = NULL;
winAudioBackend = nullptr;
#endif
delete g_gameInfoCache;
g_gameInfoCache = nullptr;
UIBackgroundShutdown();
delete uiTexture;
uiTexture = nullptr;
delete uiContext;
uiContext = NULL;
uiContext = nullptr;
ui_draw2d.Shutdown();
ui_draw2d_front.Shutdown();