From 821fe26cdc09a59992d853fc40f2ca0534c742a2 Mon Sep 17 00:00:00 2001 From: raven02 Date: Sat, 21 Dec 2013 16:20:46 +0800 Subject: [PATCH] emnu fix#3 --- UI/GameSettingsScreen.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index ec36d9db7d..eb2efab402 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -41,6 +41,7 @@ #include "Core/MIPS/JitCommon/JitCommon.h" #include "android/jni/TestRunner.h" #include "GPU/GPUInterface.h" +#include "GPU/GLES/Framebuffer.h" #include "Common/KeyMap.h" #ifdef _WIN32 @@ -119,7 +120,7 @@ void GameSettingsScreen::CreateViews() { graphicsSettings->Add(new ItemHeader(gs->T("Features"))); postProcChoice_ = graphicsSettings->Add(new Choice(gs->T("Postprocessing Shader"))); postProcChoice_->OnClick.Handle(this, &GameSettingsScreen::OnPostProcShader); - postProcChoice_->SetEnabled(g_Config.iRenderingMode != 0); + postProcChoice_->SetEnabled(g_Config.iRenderingMode != FB_NON_BUFFERED_MODE); #if defined(_WIN32) || defined(USING_QT_UI) graphicsSettings->Add(new CheckBox(&g_Config.bFullScreen, gs->T("FullScreen")))->OnClick.Handle(this, &GameSettingsScreen::OnFullscreenChange); @@ -138,7 +139,7 @@ void GameSettingsScreen::CreateViews() { #endif resolutionChoice_ = graphicsSettings->Add(new PopupMultiChoice(&g_Config.iInternalResolution, gs->T("Rendering Resolution"), internalResolutions, 0, ARRAY_SIZE(internalResolutions), gs, screenManager())); resolutionChoice_->OnClick.Handle(this, &GameSettingsScreen::OnResolutionChange); - resolutionChoice_->SetEnabled(g_Config.iRenderingMode != 0); + resolutionChoice_->SetEnabled(g_Config.iRenderingMode != FB_NON_BUFFERED_MODE); #ifdef _WIN32 graphicsSettings->Add(new CheckBox(&g_Config.bVSync, gs->T("VSync"))); #endif @@ -321,8 +322,8 @@ UI::EventReturn GameSettingsScreen::OnRenderingMode(UI::EventParams &e) { enableReports_ = Reporting::IsEnabled(); enableReportsCheckbox_->SetEnabled(Reporting::IsSupported()); - postProcChoice_->SetEnabled(g_Config.iRenderingMode != 0); - resolutionChoice_->SetEnabled(g_Config.iRenderingMode != 0); + postProcChoice_->SetEnabled(g_Config.iRenderingMode != FB_NON_BUFFERED_MODE); + resolutionChoice_->SetEnabled(g_Config.iRenderingMode != FB_NON_BUFFERED_MODE); return UI::EVENT_DONE; }