* fixed a GUI displaying bug for post processing shaders when switching between plugins
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7069 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
40ac272691
commit
f34aaf7471
|
@ -409,12 +409,12 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||||
|
|
||||||
// - misc
|
// - misc
|
||||||
{
|
{
|
||||||
wxFlexGridSizer* const szr_misc = new wxFlexGridSizer(2, 5, 5);
|
wxGridSizer* const szr_misc = new wxGridSizer(2);
|
||||||
|
|
||||||
szr_misc->Add(new SettingCheckBox(page_advanced, _("Crop"), crop_tooltip, vconfig.bCrop));
|
szr_misc->Add(new SettingCheckBox(page_advanced, _("Crop"), crop_tooltip, vconfig.bCrop), 0, wxBOTTOM, 5);
|
||||||
szr_misc->Add(new SettingCheckBox(page_advanced, _("Enable OpenCL"), opencl_tooltip, vconfig.bEnableOpenCL));
|
szr_misc->Add(new SettingCheckBox(page_advanced, _("Enable OpenCL"), opencl_tooltip, vconfig.bEnableOpenCL), 0, wxLEFT|wxBOTTOM, 5);
|
||||||
szr_misc->Add(new SettingCheckBox(page_advanced, _("Enable Display List Caching"), dlc_tooltip, vconfig.bDlistCachingEnable));
|
szr_misc->Add(new SettingCheckBox(page_advanced, _("Enable Display List Caching"), dlc_tooltip, vconfig.bDlistCachingEnable), 0, wxBOTTOM, 5);
|
||||||
szr_misc->Add(new SettingCheckBox(page_advanced, _("Enable Hotkeys"), hotkeys_tooltip, vconfig.bOSDHotKey));
|
szr_misc->Add(new SettingCheckBox(page_advanced, _("Enable Hotkeys"), hotkeys_tooltip, vconfig.bOSDHotKey), 0, wxLEFT|wxBOTTOM, 5);
|
||||||
|
|
||||||
// postproc shader
|
// postproc shader
|
||||||
if (vconfig.backend_info.PPShaders.size())
|
if (vconfig.backend_info.PPShaders.size())
|
||||||
|
|
|
@ -158,6 +158,9 @@ void VideoBackend::ShowConfig(void *_hParent)
|
||||||
|
|
||||||
factory->Release();
|
factory->Release();
|
||||||
|
|
||||||
|
// Clear ppshaders string vector
|
||||||
|
g_Config.backend_info.PPShaders.clear();
|
||||||
|
|
||||||
VideoConfigDiag *const diag = new VideoConfigDiag((wxWindow*)_hParent, _trans("Direct3D11"), "gfx_dx11");
|
VideoConfigDiag *const diag = new VideoConfigDiag((wxWindow*)_hParent, _trans("Direct3D11"), "gfx_dx11");
|
||||||
diag->ShowModal();
|
diag->ShowModal();
|
||||||
diag->Destroy();
|
diag->Destroy();
|
||||||
|
|
|
@ -139,6 +139,8 @@ void VideoBackend::ShowConfig(void* parent)
|
||||||
g_Config.backend_info.AAModes.push_back(adapter.aa_levels[i].name);
|
g_Config.backend_info.AAModes.push_back(adapter.aa_levels[i].name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clear ppshaders string vector
|
||||||
|
g_Config.backend_info.PPShaders.clear();
|
||||||
|
|
||||||
VideoConfigDiag *const diag = new VideoConfigDiag((wxWindow*)parent, _trans("Direct3D9"), "gfx_dx9");
|
VideoConfigDiag *const diag = new VideoConfigDiag((wxWindow*)parent, _trans("Direct3D9"), "gfx_dx9");
|
||||||
diag->ShowModal();
|
diag->ShowModal();
|
||||||
|
|
Loading…
Reference in New Issue