mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
Move DebugOverlay rendering to the overlay screen, allowing drawing it on top of the menu
This commit is contained in:
1 parent
8ef781faff
commit
a32249a3cf
15 files changed
+50
-27
No files matched your search
+5
-4
@@ -1427,7 +1427,7 @@ void EmuScreen::render() {
|
||||
}
|
||||
}
|
||||
|
||||
Core_UpdateDebugStats(g_Config.iDebugOverlay == DebugOverlay::DEBUG_STATS || g_Config.bLogFrameDrops);
|
||||
Core_UpdateDebugStats((DebugOverlay)g_Config.iDebugOverlay == DebugOverlay::DEBUG_STATS || g_Config.bLogFrameDrops);
|
||||
|
||||
bool blockedExecution = Achievements::IsBlockingExecution();
|
||||
if (!blockedExecution) {
|
||||
@@ -1503,7 +1503,7 @@ bool EmuScreen::hasVisibleUI() {
|
||||
if (g_Config.bEnableCardboardVR || g_Config.bEnableNetworkChat)
|
||||
return true;
|
||||
// Debug UI.
|
||||
if (g_Config.iDebugOverlay != DebugOverlay::OFF)
|
||||
if ((DebugOverlay)g_Config.iDebugOverlay != DebugOverlay::OFF)
|
||||
return true;
|
||||
|
||||
// Exception information.
|
||||
@@ -1538,8 +1538,9 @@ void EmuScreen::renderUI() {
|
||||
}
|
||||
|
||||
if (!invalid_) {
|
||||
DrawDebugOverlay(ctx, ctx->GetLayoutBounds(), controlMapper_, g_Config.iDebugOverlay);
|
||||
|
||||
if ((DebugOverlay)g_Config.iDebugOverlay == DebugOverlay::CONTROL) {
|
||||
DrawControlMapperOverlay(ctx, ctx->GetLayoutBounds(), controlMapper_);
|
||||
}
|
||||
if (g_Config.iShowStatusFlags) {
|
||||
DrawFPS(ctx, ctx->GetLayoutBounds());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user