Also disable rendering resolution when render mode = non-buffered

This commit is contained in:
Henrik Rydgård 2013-10-30 12:12:14 +01:00
parent cbe8245bad
commit d3f9853d2d
2 changed files with 5 additions and 1 deletions

View File

@ -134,7 +134,9 @@ void GameSettingsScreen::CreateViews() {
#else
static const char *internalResolutions[] = {"Auto (1:1)", "1x PSP", "2x PSP", "3x PSP", "4x PSP", "5x PSP" };
#endif
graphicsSettings->Add(new PopupMultiChoice(&g_Config.iInternalResolution, gs->T("Rendering Resolution"), internalResolutions, 0, ARRAY_SIZE(internalResolutions), gs, screenManager()))->OnClick.Handle(this, &GameSettingsScreen::OnResolutionChange);
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);
#ifdef _WIN32
graphicsSettings->Add(new CheckBox(&g_Config.bVSync, gs->T("VSync")));
#endif
@ -296,6 +298,7 @@ UI::EventReturn GameSettingsScreen::OnRenderingMode(UI::EventParams &e) {
enableReportsCheckbox_->SetEnabled(Reporting::IsSupported());
postProcChoice_->SetEnabled(g_Config.iRenderingMode != 0);
resolutionChoice_->SetEnabled(g_Config.iRenderingMode != 0);
return UI::EVENT_DONE;
}

View File

@ -48,6 +48,7 @@ private:
UI::CheckBox *enableReportsCheckbox_;
UI::Choice *layoutEditorChoice_;
UI::Choice *postProcChoice_;
UI::PopupMultiChoice *resolutionChoice_;
// Event handlers
UI::EventReturn OnControlMapping(UI::EventParams &e);