[Glide64] Make wrpVRAM private
This commit is contained in:
parent
7a43073eef
commit
db3701bde0
|
@ -323,7 +323,7 @@ public:
|
||||||
m_VramSize.Attach(GetDlgItem(IDC_SPIN_VRAM_SIZE));
|
m_VramSize.Attach(GetDlgItem(IDC_SPIN_VRAM_SIZE));
|
||||||
m_VramSize.SetBuddy(GetDlgItem(IDC_TXT_VRAM_SIZE));
|
m_VramSize.SetBuddy(GetDlgItem(IDC_TXT_VRAM_SIZE));
|
||||||
m_spinVRAM.Attach(GetDlgItem(IDC_TXT_VRAM_SIZE));
|
m_spinVRAM.Attach(GetDlgItem(IDC_TXT_VRAM_SIZE));
|
||||||
m_cbxVRAM.SetCheck(g_settings->wrpVRAM == 0 ? BST_CHECKED : BST_UNCHECKED);
|
m_cbxVRAM.SetCheck(g_settings->wrpVRAM() == 0 ? BST_CHECKED : BST_UNCHECKED);
|
||||||
m_lblMb.Attach(GetDlgItem(IDC_LBL_MB));
|
m_lblMb.Attach(GetDlgItem(IDC_LBL_MB));
|
||||||
AutoDetectChanged();
|
AutoDetectChanged();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -339,7 +339,7 @@ public:
|
||||||
g_settings->SetTexenhOptions(m_cbxTextureSettings.GetCheck() == BST_CHECKED);
|
g_settings->SetTexenhOptions(m_cbxTextureSettings.GetCheck() == BST_CHECKED);
|
||||||
g_settings->SetFullScreenRes(m_cmbFSResolution.GetCurSel());
|
g_settings->SetFullScreenRes(m_cmbFSResolution.GetCurSel());
|
||||||
g_settings->wrpAnisotropic = m_cbxAnisotropic.GetCheck() == BST_CHECKED;
|
g_settings->wrpAnisotropic = m_cbxAnisotropic.GetCheck() == BST_CHECKED;
|
||||||
g_settings->wrpVRAM = m_cbxVRAM.GetCheck() == BST_CHECKED ? 0 : atoi(spinVRAM);
|
g_settings->SetWrpVRAM(m_cbxVRAM.GetCheck() == BST_CHECKED ? 0 : atoi(spinVRAM));
|
||||||
g_settings->wrpFBO = m_cbxFBO.GetCheck() == BST_CHECKED;
|
g_settings->wrpFBO = m_cbxFBO.GetCheck() == BST_CHECKED;
|
||||||
|
|
||||||
if (memcmp(&oldsettings, g_settings, sizeof(oldsettings))) //check that settings were changed
|
if (memcmp(&oldsettings, g_settings, sizeof(oldsettings))) //check that settings were changed
|
||||||
|
@ -361,7 +361,7 @@ private:
|
||||||
|
|
||||||
void AutoDetectChanged(void)
|
void AutoDetectChanged(void)
|
||||||
{
|
{
|
||||||
m_spinVRAM.SetWindowText(m_cbxVRAM.GetCheck() == BST_CHECKED ? " auto" : stdstr_f("%d",g_settings->wrpVRAM ? g_settings->wrpVRAM : 32).c_str());
|
m_spinVRAM.SetWindowText(m_cbxVRAM.GetCheck() == BST_CHECKED ? " auto" : stdstr_f("%d",g_settings->wrpVRAM() != 0 ? g_settings->wrpVRAM() : 32).c_str());
|
||||||
m_spinVRAM.EnableWindow(m_cbxVRAM.GetCheck() != BST_CHECKED);
|
m_spinVRAM.EnableWindow(m_cbxVRAM.GetCheck() != BST_CHECKED);
|
||||||
m_VramSize.EnableWindow(m_cbxVRAM.GetCheck() != BST_CHECKED);
|
m_VramSize.EnableWindow(m_cbxVRAM.GetCheck() != BST_CHECKED);
|
||||||
m_lblMb.EnableWindow(m_cbxVRAM.GetCheck() != BST_CHECKED);
|
m_lblMb.EnableWindow(m_cbxVRAM.GetCheck() != BST_CHECKED);
|
||||||
|
|
|
@ -205,7 +205,7 @@ void ChangeSize()
|
||||||
|
|
||||||
void ConfigWrapper()
|
void ConfigWrapper()
|
||||||
{
|
{
|
||||||
grConfigWrapperExt(g_settings->wrpVRAM * 1024 * 1024, g_settings->wrpFBO, g_settings->wrpAnisotropic);
|
grConfigWrapperExt(g_settings->wrpVRAM() * 1024 * 1024, g_settings->wrpFBO, g_settings->wrpAnisotropic);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UseUnregisteredSetting(int /*SettingID*/)
|
void UseUnregisteredSetting(int /*SettingID*/)
|
||||||
|
@ -1008,7 +1008,7 @@ int CALL InitiateGFX(GFX_INFO Gfx_Info)
|
||||||
CountCombine();
|
CountCombine();
|
||||||
ZLUT_init();
|
ZLUT_init();
|
||||||
|
|
||||||
grConfigWrapperExt(g_settings->wrpVRAM * 1024 * 1024, g_settings->wrpFBO, g_settings->wrpAnisotropic);
|
grConfigWrapperExt(g_settings->wrpVRAM() * 1024 * 1024, g_settings->wrpFBO, g_settings->wrpAnisotropic);
|
||||||
grGlideInit();
|
grGlideInit();
|
||||||
const char *extensions = grGetString(GR_EXTENSION);
|
const char *extensions = grGetString(GR_EXTENSION);
|
||||||
grGlideShutdown();
|
grGlideShutdown();
|
||||||
|
|
|
@ -87,7 +87,7 @@ CSettings::CSettings() :
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
m_FullScreenRes(0),
|
m_FullScreenRes(0),
|
||||||
#endif
|
#endif
|
||||||
wrpVRAM(0),
|
m_wrpVRAM(0),
|
||||||
wrpFBO(0),
|
wrpFBO(0),
|
||||||
wrpAnisotropic(0),
|
wrpAnisotropic(0),
|
||||||
m_FlushLogs(false)
|
m_FlushLogs(false)
|
||||||
|
@ -315,6 +315,15 @@ void CSettings::SetBuffClear(bool value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSettings::SetWrpVRAM(int value)
|
||||||
|
{
|
||||||
|
if (value != m_wrpVRAM)
|
||||||
|
{
|
||||||
|
m_wrpVRAM = value;
|
||||||
|
m_dirty = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CSettings::SetGhqFltr(TextureFilter_t value)
|
void CSettings::SetGhqFltr(TextureFilter_t value)
|
||||||
{
|
{
|
||||||
if (value != m_ghq_fltr)
|
if (value != m_ghq_fltr)
|
||||||
|
@ -549,7 +558,7 @@ void CSettings::ReadSettings()
|
||||||
m_advanced_options = Set_basic_mode ? GetSystemSetting(Set_basic_mode) == 0 : false;
|
m_advanced_options = Set_basic_mode ? GetSystemSetting(Set_basic_mode) == 0 : false;
|
||||||
m_texenh_options = GetSetting(Set_texenh_options) != 0;
|
m_texenh_options = GetSetting(Set_texenh_options) != 0;
|
||||||
|
|
||||||
this->wrpVRAM = GetSetting(Set_wrpVRAM);
|
m_wrpVRAM = GetSetting(Set_wrpVRAM);
|
||||||
this->wrpFBO = GetSetting(Set_wrpFBO);
|
this->wrpFBO = GetSetting(Set_wrpFBO);
|
||||||
this->wrpAnisotropic = GetSetting(Set_wrpAnisotropic);
|
this->wrpAnisotropic = GetSetting(Set_wrpAnisotropic);
|
||||||
|
|
||||||
|
@ -819,7 +828,7 @@ void CSettings::WriteSettings(void)
|
||||||
SetSetting(Set_Rotate, m_rotate);
|
SetSetting(Set_Rotate, m_rotate);
|
||||||
SetSetting(Set_texenh_options, m_texenh_options);
|
SetSetting(Set_texenh_options, m_texenh_options);
|
||||||
|
|
||||||
SetSetting(Set_wrpVRAM, g_settings->wrpVRAM);
|
SetSetting(Set_wrpVRAM, m_wrpVRAM);
|
||||||
SetSetting(Set_wrpFBO, g_settings->wrpFBO);
|
SetSetting(Set_wrpFBO, g_settings->wrpFBO);
|
||||||
SetSetting(Set_wrpAnisotropic, g_settings->wrpAnisotropic);
|
SetSetting(Set_wrpAnisotropic, g_settings->wrpAnisotropic);
|
||||||
SetSetting(Set_autodetect_ucode, m_autodetect_ucode);
|
SetSetting(Set_autodetect_ucode, m_autodetect_ucode);
|
||||||
|
|
|
@ -261,7 +261,7 @@ public:
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
inline uint32_t FullScreenRes(void) const { return m_FullScreenRes; }
|
inline uint32_t FullScreenRes(void) const { return m_FullScreenRes; }
|
||||||
#endif
|
#endif
|
||||||
int wrpVRAM;
|
inline int wrpVRAM(void) const { return m_wrpVRAM; }
|
||||||
int wrpFBO;
|
int wrpFBO;
|
||||||
int wrpAnisotropic;
|
int wrpAnisotropic;
|
||||||
inline bool FlushLogs(void) const { return m_FlushLogs; }
|
inline bool FlushLogs(void) const { return m_FlushLogs; }
|
||||||
|
@ -275,6 +275,7 @@ public:
|
||||||
void SetSwapMode(SwapMode_t value);
|
void SetSwapMode(SwapMode_t value);
|
||||||
void SetFog(bool value);
|
void SetFog(bool value);
|
||||||
void SetBuffClear(bool value);
|
void SetBuffClear(bool value);
|
||||||
|
void SetWrpVRAM(int value);
|
||||||
void SetGhqFltr(TextureFilter_t value);
|
void SetGhqFltr(TextureFilter_t value);
|
||||||
void SetGhqEnht(TextureEnhancement_t value);
|
void SetGhqEnht(TextureEnhancement_t value);
|
||||||
void SetGhqCmpr(TextureCompression_t value);
|
void SetGhqCmpr(TextureCompression_t value);
|
||||||
|
@ -318,6 +319,7 @@ private:
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
uint32_t m_FullScreenRes;
|
uint32_t m_FullScreenRes;
|
||||||
#endif
|
#endif
|
||||||
|
int m_wrpVRAM;
|
||||||
bool m_FlushLogs;
|
bool m_FlushLogs;
|
||||||
char m_log_dir[260];
|
char m_log_dir[260];
|
||||||
uint32_t m_ScreenRes;
|
uint32_t m_ScreenRes;
|
||||||
|
|
Loading…
Reference in New Issue