Removed yet another unneeded #define in wx/guiinit.cpp

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1279 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
wowzaman12 2015-03-28 16:02:10 +00:00
parent c926dd888f
commit db955f9a25
1 changed files with 2 additions and 5 deletions

View File

@ -2831,16 +2831,13 @@ bool MainFrame::InitMore(void)
getcbb("Bilinear", gopts.bilinear); getcbb("Bilinear", gopts.bilinear);
getcbb("VSync", gopts.vsync); getcbb("VSync", gopts.vsync);
// FIXME: make cb disabled when not GL or d3d // FIXME: make cb disabled when not GL or d3d
#define getcbi(n, o, v) do { \
cb=SafeXRCCTRL<wxCheckBox>(d, n); \
cb->SetValidator(wxBoolIntValidator(&o, v)); \
} while(0)
int mthr = wxThread::GetCPUCount(); int mthr = wxThread::GetCPUCount();
if(mthr > 8) if(mthr > 8)
mthr = 8; mthr = 8;
if(mthr < 0) if(mthr < 0)
mthr = 2; mthr = 2;
getcbi("Multithread", gopts.max_threads, mthr); cb=SafeXRCCTRL<wxCheckBox>(d, "Multithread");
cb->SetValidator(wxBoolIntValidator(&gopts.max_threads, mthr));
if(mthr <= 1) if(mthr <= 1)
cb->Hide(); cb->Hide();
#ifdef MMX #ifdef MMX