Fix autotests build.

This commit is contained in:
Jean-Philip Desjardins 2019-04-17 20:03:46 -04:00
parent 2ceb94adfc
commit fb58cc77b0

View File

@ -11,7 +11,7 @@ CGSH_OpenGL_SettingsWnd::CGSH_OpenGL_SettingsWnd(HWND parentWindow)
m_enableHighResMode = Framework::Win32::CButton(GetItem(IDC_GSHOPENGL_SETTINGS_ENABLEHIGHRESMODE));
m_forceBilinearTextures = Framework::Win32::CButton(GetItem(IDC_GSHOPENGL_SETTINGS_FORCEBILINEAR));
m_enableHighResMode.SetCheck(CAppConfig::GetInstance().GetPreferenceBoolean(PREF_CGSH_OPENGL_ENABLEHIGHRESMODE));
m_enableHighResMode.SetCheck(CAppConfig::GetInstance().GetPreferenceInteger(PREF_CGSH_OPENGL_RESOLUTION_FACTOR) != 1);
m_forceBilinearTextures.SetCheck(CAppConfig::GetInstance().GetPreferenceBoolean(PREF_CGSH_OPENGL_FORCEBILINEARTEXTURES));
}
@ -38,6 +38,6 @@ long CGSH_OpenGL_SettingsWnd::OnCommand(unsigned short id, unsigned short cmd, H
void CGSH_OpenGL_SettingsWnd::Save()
{
CAppConfig::GetInstance().SetPreferenceBoolean(PREF_CGSH_OPENGL_ENABLEHIGHRESMODE, m_enableHighResMode.GetCheck());
CAppConfig::GetInstance().SetPreferenceBoolean(PREF_CGSH_OPENGL_RESOLUTION_FACTOR, m_enableHighResMode.GetCheck() ? 2 : 1);
CAppConfig::GetInstance().SetPreferenceBoolean(PREF_CGSH_OPENGL_FORCEBILINEARTEXTURES, m_forceBilinearTextures.GetCheck());
}