From 24e37d2dea3694e3d8f6f847a2ff751909e057b2 Mon Sep 17 00:00:00 2001 From: Akash Date: Wed, 6 May 2015 16:37:19 +0530 Subject: [PATCH] sync with GSdx.ini variable.(fix earlier typo) fixed the description for round offset hack. fixed the new description for round offset hack. --- plugins/GSdx/GSSetting.cpp | 4 +--- plugins/GSdx/GSSettingsDlg.cpp | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/GSdx/GSSetting.cpp b/plugins/GSdx/GSSetting.cpp index 7124869355..f76f583ba8 100644 --- a/plugins/GSdx/GSSetting.cpp +++ b/plugins/GSdx/GSSetting.cpp @@ -80,9 +80,7 @@ const char* dialog_message(int ID, bool* updateText) { case IDC_ROUND_SPRITE: return "Corrects the sampling of 2D sprite textures when upscaling.\n\n" "Fixes lines in sprites of games like Ar tonelico when upscaling.\n\n" - - "carries total of three states, Unchecked (off), Squared check box (on for all sprites) checked box (on for flat sprites)"; - + "Carries a total of three states: Unchecked (off), Shaded (on for all sprites) and Checked (on for flat sprites)"; case IDC_TCOFFSETX: case IDC_TCOFFSETX2: case IDC_STATIC_TCOFFSETX: diff --git a/plugins/GSdx/GSSettingsDlg.cpp b/plugins/GSdx/GSSettingsDlg.cpp index 33d6a5252d..ad513c2de7 100644 --- a/plugins/GSdx/GSSettingsDlg.cpp +++ b/plugins/GSdx/GSSettingsDlg.cpp @@ -601,7 +601,7 @@ void GSHacksDlg::OnInit() CheckDlgButton(m_hWnd, IDC_ALPHASTENCIL, theApp.GetConfig("UserHacks_AlphaStencil", 0)); CheckDlgButton(m_hWnd, IDC_CHECK_NVIDIA_HACK, theApp.GetConfig("UserHacks_NVIDIAHack", 0)); CheckDlgButton(m_hWnd, IDC_CHECK_DISABLE_ALL_HACKS, theApp.GetConfig("UserHacks_DisableCrcHacks", 0)); - CheckDlgButton(m_hWnd, IDC_ROUND_SPRITE, theApp.GetConfig("UserHacks_round_sprite", 0)); + CheckDlgButton(m_hWnd, IDC_ROUND_SPRITE, theApp.GetConfig("UserHacks_round_sprite_offset", 0)); CheckDlgButton(m_hWnd, IDC_ALIGN_SPRITE, theApp.GetConfig("UserHacks_align_sprite_X", 0)); SendMessage(GetDlgItem(m_hWnd, IDC_SKIPDRAWHACK), UDM_SETRANGE, 0, MAKELPARAM(1000, 0)); @@ -664,7 +664,7 @@ bool GSHacksDlg::OnMessage(UINT message, WPARAM wParam, LPARAM lParam) theApp.SetConfig("UserHacks_AlphaStencil", (int)IsDlgButtonChecked(m_hWnd, IDC_ALPHASTENCIL)); theApp.SetConfig("UserHacks_NVIDIAHack", (int)IsDlgButtonChecked(m_hWnd, IDC_CHECK_NVIDIA_HACK)); theApp.SetConfig("UserHacks_DisableCrcHacks", (int)IsDlgButtonChecked(m_hWnd, IDC_CHECK_DISABLE_ALL_HACKS)); - theApp.SetConfig("Userhacks_round_sprite", (int)IsDlgButtonChecked(m_hWnd, IDC_ROUND_SPRITE)); + theApp.SetConfig("UserHacks_round_sprite_offset", (int)IsDlgButtonChecked(m_hWnd, IDC_ROUND_SPRITE)); theApp.SetConfig("Userhacks_align_sprite_X", (int)IsDlgButtonChecked(m_hWnd, IDC_ALIGN_SPRITE)); unsigned int TCOFFSET = SendMessage(GetDlgItem(m_hWnd, IDC_TCOFFSETX), UDM_GETPOS, 0, 0) & 0xFFFF;