add some preliminary resolution data to video settings (will need to query monitors in the future)

This commit is contained in:
jp9000 2013-12-14 21:30:16 -07:00
commit dd1c5b4342
4 changed files with 48 additions and 2 deletions

View file

@ -26,6 +26,24 @@ OBSBasicSettings::OBSBasicSettings(wxWindow *parent)
void OBSBasicSettings::PageChanged(wxListbookEvent &event)
{
wxWindow *curPage = settingsList->GetCurrentPage();
if (!curPage)
return;
int id = curPage->GetId();
BasicSettingsData *ptr = NULL;
switch (id) {
case ID_SETTINGS_GENERAL:
ptr = CreateBasicGeneralSettings(this);
break;
case ID_SETTINGS_VIDEO:
ptr = CreateBasicVideoSettings(this);
break;
}
settings = move(unique_ptr<BasicSettingsData>(ptr));
}
void OBSBasicSettings::PageChanging(wxListbookEvent &event)