mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 20:24:01 +01:00
Implement running the game in the background on the pause screen. Fix some bugs.
This commit is contained in:
1 parent
9f01661774
commit
e8f70594a4
25 files changed
+123
-120
No files matched your search
+17
-12
@@ -212,27 +212,32 @@ void UIScreen::SetupViewport() {
|
||||
draw->SetTargetSize(g_display.pixel_xres, g_display.pixel_yres);
|
||||
}
|
||||
|
||||
void UIScreen::render(ScreenRenderMode mode) {
|
||||
ScreenRenderFlags UIScreen::render(ScreenRenderMode mode) {
|
||||
if (mode & ScreenRenderMode::FIRST) {
|
||||
SetupViewport();
|
||||
}
|
||||
|
||||
DoRecreateViews();
|
||||
|
||||
UIContext &uiContext = *screenManager()->getUIContext();
|
||||
if (root_) {
|
||||
UIContext &uiContext = *screenManager()->getUIContext();
|
||||
|
||||
UI::LayoutViewHierarchy(uiContext, root_, ignoreInsets_);
|
||||
|
||||
uiContext.PushTransform({translation_, scale_, alpha_});
|
||||
|
||||
uiContext.Begin();
|
||||
DrawBackground(uiContext);
|
||||
root_->Draw(uiContext);
|
||||
uiContext.Flush();
|
||||
|
||||
uiContext.PopTransform();
|
||||
}
|
||||
|
||||
uiContext.PushTransform({translation_, scale_, alpha_});
|
||||
|
||||
uiContext.Begin();
|
||||
DrawBackground(uiContext);
|
||||
if (root_) {
|
||||
root_->Draw(uiContext);
|
||||
}
|
||||
uiContext.Flush();
|
||||
DrawForeground(uiContext);
|
||||
uiContext.Flush();
|
||||
|
||||
uiContext.PopTransform();
|
||||
|
||||
return ScreenRenderFlags::NONE;
|
||||
}
|
||||
|
||||
TouchInput UIScreen::transformTouch(const TouchInput &touch) {
|
||||
|
||||
Reference in new issue
Block a user