mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Make the pause screen "transparent"
When paused (ESC or back), you now see the paused game below, darkened, instead of the usual menu background. Not enabled in VR mode for now because it could get weird. Also not trivial in skip-buffered mode (would require taking a screenshot) so disabled in that case too.
This commit is contained in:
1 parent
a3874ebcef
commit
63cbd9c79b
3 files changed
+37
-6
No files matched your search
+13
-3
@@ -1105,7 +1105,6 @@ void EmuScreen::update() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void EmuScreen::checkPowerDown() {
|
||||
@@ -1356,8 +1355,7 @@ void EmuScreen::preRender() {
|
||||
// We only bind it in FramebufferManager::CopyDisplayToOutput (unless non-buffered)...
|
||||
// We do, however, start the frame in other ways.
|
||||
|
||||
bool useBufferedRendering = !g_Config.bSkipBufferEffects;
|
||||
if ((!useBufferedRendering && !g_Config.bSoftwareRendering) || Core_IsStepping()) {
|
||||
if ((g_Config.bSkipBufferEffects && !g_Config.bSoftwareRendering) || Core_IsStepping()) {
|
||||
// We need to clear here already so that drawing during the frame is done on a clean slate.
|
||||
if (Core_IsStepping() && gpuStats.numFlips != 0) {
|
||||
draw->BindFramebufferAsRenderTarget(nullptr, { RPAction::KEEP, RPAction::DONT_CARE, RPAction::DONT_CARE }, "EmuScreen_BackBuffer");
|
||||
@@ -1393,6 +1391,18 @@ void EmuScreen::render() {
|
||||
if (!thin3d)
|
||||
return; // shouldn't really happen but I've seen a suspicious stack trace..
|
||||
|
||||
// We can still render behind the pause screen.
|
||||
bool paused = screenManager()->topScreen() != this;
|
||||
|
||||
if (paused) {
|
||||
// If we're paused and PauseScreen is transparent (will only be in buffered rendering mode), we just copy display to output.
|
||||
thin3d->BindFramebufferAsRenderTarget(nullptr, { RPAction::CLEAR, RPAction::DONT_CARE, RPAction::DONT_CARE }, "EmuScreen_Paused");
|
||||
if (PSP_IsInited()) {
|
||||
gpu->CopyDisplayToOutput(true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (invalid_) {
|
||||
// Loading, or after shutdown?
|
||||
if (loadingTextView_->GetVisibility() == UI::V_VISIBLE)
|
||||
|
||||
Reference in new issue
Block a user