mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 07:03:33 +02:00
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:
+6
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user