mirror of
https://github.com/libretro/Play-.git
synced 2025-01-07 09:00:25 +00:00
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
#include "resource.h"
|
|
#include "../gs/GSH_OpenGL/GSH_OpenGL.h"
|
|
#include "../AppConfig.h"
|
|
#include "GSH_OpenGL_SettingsWnd.h"
|
|
|
|
CGSH_OpenGL_SettingsWnd::CGSH_OpenGL_SettingsWnd(HWND parentWindow)
|
|
: CDialog(MAKEINTRESOURCE(IDD_GSHOPENGL_SETTINGS), parentWindow)
|
|
{
|
|
SetClassPtr();
|
|
|
|
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_forceBilinearTextures.SetCheck(CAppConfig::GetInstance().GetPreferenceBoolean(PREF_CGSH_OPENGL_FORCEBILINEARTEXTURES));
|
|
}
|
|
|
|
CGSH_OpenGL_SettingsWnd::~CGSH_OpenGL_SettingsWnd()
|
|
{
|
|
|
|
}
|
|
|
|
long CGSH_OpenGL_SettingsWnd::OnCommand(unsigned short id, unsigned short cmd, HWND senderWnd)
|
|
{
|
|
switch(id)
|
|
{
|
|
case IDOK:
|
|
Save();
|
|
Destroy();
|
|
return TRUE;
|
|
break;
|
|
case IDCANCEL:
|
|
Destroy();
|
|
return TRUE;
|
|
break;
|
|
}
|
|
return FALSE;
|
|
}
|
|
|
|
void CGSH_OpenGL_SettingsWnd::Save()
|
|
{
|
|
CAppConfig::GetInstance().SetPreferenceBoolean(PREF_CGSH_OPENGL_ENABLEHIGHRESMODE, m_enableHighResMode.GetCheck());
|
|
CAppConfig::GetInstance().SetPreferenceBoolean(PREF_CGSH_OPENGL_FORCEBILINEARTEXTURES, m_forceBilinearTextures.GetCheck());
|
|
}
|