mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Handle inset adjustements on the C++ side, handle them better in the UI.
This commit is contained in:
1 parent
13698f81fb
commit
75453632f9
32 files changed
+210
-84
No files matched your search
+4
-3
@@ -220,13 +220,14 @@ void DrawFramebufferList(UIContext *ctx, GPUDebugInterface *gpu, const Bounds &b
|
||||
}
|
||||
|
||||
void DrawControlMapperOverlay(UIContext *ctx, const Bounds &bounds, const ControlMapper &controlMapper) {
|
||||
DrawControlDebug(ctx, controlMapper, ctx->GetLayoutBounds(false));
|
||||
DrawControlDebug(ctx, controlMapper, ctx->GetLayoutBounds(ViewLayoutMode::ApplyInsets, false));
|
||||
}
|
||||
|
||||
void DrawDebugOverlay(UIContext *ctx, const Bounds &bounds, DebugOverlay overlay) {
|
||||
bool inGame = GetUIState() == UISTATE_INGAME;
|
||||
|
||||
const Bounds layoutBounds = ctx->GetLayoutBounds(false);
|
||||
const Bounds layoutBounds = ctx->GetLayoutBounds(ViewLayoutMode::ApplyInsets, false);
|
||||
|
||||
switch (overlay) {
|
||||
case DebugOverlay::DEBUG_STATS:
|
||||
if (inGame)
|
||||
@@ -256,7 +257,7 @@ void DrawDebugOverlay(UIContext *ctx, const Bounds &bounds, DebugOverlay overlay
|
||||
#endif
|
||||
case DebugOverlay::FRAMEBUFFER_LIST:
|
||||
if (inGame)
|
||||
DrawFramebufferList(ctx, gpu, bounds);
|
||||
DrawFramebufferList(ctx, gpu, layoutBounds);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user