diff --git a/Source/ui_win32/GSH_OpenGL_SettingsWnd.cpp b/Source/ui_win32/GSH_OpenGL_SettingsWnd.cpp index d3da164b..2eb57c7b 100644 --- a/Source/ui_win32/GSH_OpenGL_SettingsWnd.cpp +++ b/Source/ui_win32/GSH_OpenGL_SettingsWnd.cpp @@ -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()); }