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:
Henrik Rydgård committed 2026-03-14 13:07:48 +01:00
1 parent c5e0403ffd
commit 160e2c4f9b
15 files changed
+33 -26

No files matched your search

+1 -2
View File
@@ -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);
}
}