mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Refactor: Call GetLayoutBounds on the screen instead of the context where possible.
This will allow screens to influence the layout bounds in a unified way
This commit is contained in:
1 parent
c5e0403ffd
commit
160e2c4f9b
15 files changed
+33
-26
No files matched your search
@@ -410,8 +410,7 @@ void OSDOverlayScreen::DrawForeground(UIContext &ui) {
|
||||
|
||||
// Special case control for now, since it uses the control mapper that's owned by EmuScreen.
|
||||
if (debugOverlay != DebugOverlay::OFF && debugOverlay != DebugOverlay::CONTROL) {
|
||||
UIContext *uiContext = screenManager()->getUIContext();
|
||||
DrawDebugOverlay(uiContext, uiContext->GetLayoutBounds(), debugOverlay);
|
||||
DrawDebugOverlay(&ui, GetLayoutBounds(ui), debugOverlay);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user