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

This commit is contained in:
Arthur Moore 2015-03-09 19:40:21 -04:00
parent aa20fdb6d4
commit 5109fce00c
1 changed files with 2 additions and 5 deletions

View File

@ -2802,16 +2802,13 @@ bool MainFrame::InitMore(void)
getcbb("Bilinear", gopts.bilinear);
getcbb("VSync", gopts.vsync);
// 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();
if(mthr > 8)
mthr = 8;
if(mthr < 0)
mthr = 2;
getcbi("Multithread", gopts.max_threads, mthr);
cb=SafeXRCCTRL<wxCheckBox>(d, "Multithread");
cb->SetValidator(wxBoolIntValidator(&gopts.max_threads, mthr));
if(mthr <= 1)
cb->Hide();
#ifdef MMX