Fix "Virtual XFB" always being set when opening video config dialog. (Fixes issue 3537)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6458 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak 2010-11-22 10:39:24 +00:00
parent a3c46990f6
commit 3ebd09efc9
1 changed files with 4 additions and 0 deletions

View File

@ -289,16 +289,20 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title)
group_xfb->Add(real_xfb, 0, wxRIGHT, 5); group_xfb->Add(real_xfb, 0, wxRIGHT, 5);
if (!g_Config.backend_info.bSupportsRealXFB) if (!g_Config.backend_info.bSupportsRealXFB)
{
real_xfb->Disable(); real_xfb->Disable();
g_Config.bUseRealXFB = false; g_Config.bUseRealXFB = false;
virtual_xfb->SetValue(true); virtual_xfb->SetValue(true);
} }
if (!g_Config.bUseXFB) if (!g_Config.bUseXFB)
{ {
real_xfb->Disable(); real_xfb->Disable();
virtual_xfb->Disable(); virtual_xfb->Disable();
} }
} // xfb
// - utility // - utility
{ {
wxStaticBoxSizer* const group_utility = new wxStaticBoxSizer(wxVERTICAL, page_advanced, wxT("Utility")); wxStaticBoxSizer* const group_utility = new wxStaticBoxSizer(wxVERTICAL, page_advanced, wxT("Utility"));