From ea1f9e268efbe7df83edb455c8f7b418f54eb1dd Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 2 Jul 2013 07:09:32 +0800 Subject: [PATCH] Toggle to add "Full screen" and "Skip updating PSP Memory" --- UI/MenuScreens.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index 81aa1f2048..11d0c43347 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -818,6 +818,7 @@ void GraphicsScreenP1::render() { bool Vsync = g_Config.iVSyncInterval != 0; UICheckBox(GEN_ID, x, y += stride, gs->T("VSync"), ALIGN_TOPLEFT, &Vsync); g_Config.iVSyncInterval = Vsync ? 1 : 0; + UICheckBox(GEN_ID, x, y += stride, gs->T("Fullscreen"), ALIGN_TOPLEFT, &g_Config.bFullScreen); #endif UICheckBox(GEN_ID, x, y += stride, gs->T("Display Raw Framebuffer"), ALIGN_TOPLEFT, &g_Config.bDisplayFramebuffer); if (UICheckBox(GEN_ID, x, y += stride, gs->T("Buffered Rendering"), ALIGN_TOPLEFT, &g_Config.bBufferedRendering)) { @@ -825,7 +826,13 @@ void GraphicsScreenP1::render() { gpu->Resized(); } if (g_Config.bBufferedRendering) { - if (UICheckBox(GEN_ID, x + 60, y += stride, gs->T("AA", "Anti Aliasing"), ALIGN_TOPLEFT, &g_Config.SSAntiAliasing)) { + bool memory = !g_Config.bFramebuffersToMem; + if (UICheckBox(GEN_ID, x + 60, y += stride, gs->T("Skip updating PSP Memory"), ALIGN_TOPLEFT, &memory)) { + if (gpu) + gpu->Resized(); + } + g_Config.bFramebuffersToMem = memory ? 0 : 1; + if (UICheckBox(GEN_ID, x + 60, y += stride, gs->T("AA", "Anti-aliasing"), ALIGN_TOPLEFT, &g_Config.SSAntiAliasing)) { if (gpu) gpu->Resized(); }