mirror of https://github.com/PCSX2/pcsx2.git
gsdx: Removed unnecessary defines and functions
The changes to the Hacks dialog removes the need for these defines. Also remove the swap_state function since it's now unused.
This commit is contained in:
parent
c72b4d6e8a
commit
b687b106f1
|
@ -56,7 +56,6 @@ const char* dialog_message(int ID, bool* updateText) {
|
||||||
"Works as a speedhack for: Steambot Chronicles.";
|
"Works as a speedhack for: Steambot Chronicles.";
|
||||||
case IDC_SKIPDRAWHACK:
|
case IDC_SKIPDRAWHACK:
|
||||||
case IDC_SKIPDRAWHACKEDIT:
|
case IDC_SKIPDRAWHACKEDIT:
|
||||||
case IDC_STATIC_SKIPDRAW:
|
|
||||||
return "Skipdraw\n\nSkips drawing n surfaces completely. "
|
return "Skipdraw\n\nSkips drawing n surfaces completely. "
|
||||||
"Use it, for example, to try and get rid of bad post processing effects."
|
"Use it, for example, to try and get rid of bad post processing effects."
|
||||||
" Try values between 1 and 100.";
|
" Try values between 1 and 100.";
|
||||||
|
@ -72,7 +71,6 @@ const char* dialog_message(int ID, bool* updateText) {
|
||||||
case IDC_WILDHACK:
|
case IDC_WILDHACK:
|
||||||
return "Wild Arms\n\nLowers the GS precision to avoid gaps between pixels when upscaling. Fixes the text on Wild Arms games.";
|
return "Wild Arms\n\nLowers the GS precision to avoid gaps between pixels when upscaling. Fixes the text on Wild Arms games.";
|
||||||
case IDC_MSAACB:
|
case IDC_MSAACB:
|
||||||
case IDC_STATIC_MSAA:
|
|
||||||
return "Multisample Anti-Aliasing\n\nEnables hardware Anti-Aliasing. Needs lots of memory."
|
return "Multisample Anti-Aliasing\n\nEnables hardware Anti-Aliasing. Needs lots of memory."
|
||||||
" The Z-24 modes might need to have LogarithmicZ to compensate for the bits lost (only in DX9 mode).\n\n"
|
" The Z-24 modes might need to have LogarithmicZ to compensate for the bits lost (only in DX9 mode).\n\n"
|
||||||
" MSAA is not implemented on the OpenGL renderer";
|
" MSAA is not implemented on the OpenGL renderer";
|
||||||
|
@ -98,10 +96,8 @@ const char* dialog_message(int ID, bool* updateText) {
|
||||||
"Windows: Carries a total of three states: Unchecked (off), Checked (on for all sprites) and Shaded (on for flat sprites)";
|
"Windows: Carries a total of three states: Unchecked (off), Checked (on for all sprites) and Shaded (on for flat sprites)";
|
||||||
case IDC_TCOFFSETX:
|
case IDC_TCOFFSETX:
|
||||||
case IDC_TCOFFSETX2:
|
case IDC_TCOFFSETX2:
|
||||||
case IDC_STATIC_TCOFFSETX:
|
|
||||||
case IDC_TCOFFSETY:
|
case IDC_TCOFFSETY:
|
||||||
case IDC_TCOFFSETY2:
|
case IDC_TCOFFSETY2:
|
||||||
case IDC_STATIC_TCOFFSETY:
|
|
||||||
return "Texture Coordinates Offset Hack\n\n"
|
return "Texture Coordinates Offset Hack\n\n"
|
||||||
"Offset for the ST/UV texture coordinates. Fixes some odd texture issues and might fix some post processing alignment too.\n\n"
|
"Offset for the ST/UV texture coordinates. Fixes some odd texture issues and might fix some post processing alignment too.\n\n"
|
||||||
" 0500 0500, fixes Persona 3 minimap, helps Haunting Ground.\n"
|
" 0500 0500, fixes Persona 3 minimap, helps Haunting Ground.\n"
|
||||||
|
|
|
@ -45,23 +45,19 @@ enum {
|
||||||
IDC_FILTER,
|
IDC_FILTER,
|
||||||
IDC_SKIPDRAWHACK,
|
IDC_SKIPDRAWHACK,
|
||||||
IDC_SKIPDRAWHACKEDIT,
|
IDC_SKIPDRAWHACKEDIT,
|
||||||
IDC_STATIC_SKIPDRAW,
|
|
||||||
IDC_ALPHAHACK,
|
IDC_ALPHAHACK,
|
||||||
IDC_OFFSETHACK,
|
IDC_OFFSETHACK,
|
||||||
IDC_SPRITEHACK,
|
IDC_SPRITEHACK,
|
||||||
IDC_WILDHACK,
|
IDC_WILDHACK,
|
||||||
IDC_MSAACB,
|
IDC_MSAACB,
|
||||||
IDC_STATIC_MSAA,
|
|
||||||
IDC_ALPHASTENCIL,
|
IDC_ALPHASTENCIL,
|
||||||
IDC_CHECK_DISABLE_ALL_HACKS,
|
IDC_CHECK_DISABLE_ALL_HACKS,
|
||||||
IDC_ALIGN_SPRITE,
|
IDC_ALIGN_SPRITE,
|
||||||
IDC_ROUND_SPRITE,
|
IDC_ROUND_SPRITE,
|
||||||
IDC_TCOFFSETX,
|
IDC_TCOFFSETX,
|
||||||
IDC_TCOFFSETX2,
|
IDC_TCOFFSETX2,
|
||||||
IDC_STATIC_TCOFFSETX,
|
|
||||||
IDC_TCOFFSETY,
|
IDC_TCOFFSETY,
|
||||||
IDC_TCOFFSETY2,
|
IDC_TCOFFSETY2,
|
||||||
IDC_STATIC_TCOFFSETY,
|
|
||||||
IDC_PALTEX,
|
IDC_PALTEX,
|
||||||
IDC_ACCURATE_BLEND_UNIT,
|
IDC_ACCURATE_BLEND_UNIT,
|
||||||
IDC_ACCURATE_DATE,
|
IDC_ACCURATE_DATE,
|
||||||
|
|
|
@ -540,16 +540,7 @@ GSHacksDlg::GSHacksDlg() :
|
||||||
memset(msaa2cb, 0, sizeof(msaa2cb));
|
memset(msaa2cb, 0, sizeof(msaa2cb));
|
||||||
memset(cb2msaa, 0, sizeof(cb2msaa));
|
memset(cb2msaa, 0, sizeof(cb2msaa));
|
||||||
}
|
}
|
||||||
int swap_states(int a)
|
|
||||||
{
|
|
||||||
switch(a)
|
|
||||||
{
|
|
||||||
case 0: return 0;
|
|
||||||
case 1: return 2;
|
|
||||||
case 2: return 1;
|
|
||||||
default: return 0; // If user's set more than 2 in ini file, set variable to 0.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
void GSHacksDlg::OnInit()
|
void GSHacksDlg::OnInit()
|
||||||
{
|
{
|
||||||
HWND hwnd_renderer = GetDlgItem(GetParent(m_hWnd), IDC_RENDERER);
|
HWND hwnd_renderer = GetDlgItem(GetParent(m_hWnd), IDC_RENDERER);
|
||||||
|
|
|
@ -57,14 +57,9 @@
|
||||||
#define IDC_MSAACB 2070
|
#define IDC_MSAACB 2070
|
||||||
#define IDC_HACKSBUTTON 2071
|
#define IDC_HACKSBUTTON 2071
|
||||||
#define IDC_WILDHACK 2072
|
#define IDC_WILDHACK 2072
|
||||||
#define IDC_HACK_DESCRIPTION 2073
|
|
||||||
#define IDC_STATIC_MSAA 2074
|
|
||||||
#define IDC_STATIC_SKIPDRAW 2075
|
|
||||||
#define IDC_CHECK_DISABLE_ALL_HACKS 2076
|
#define IDC_CHECK_DISABLE_ALL_HACKS 2076
|
||||||
#define IDC_ALPHASTENCIL 2077
|
#define IDC_ALPHASTENCIL 2077
|
||||||
#define IDC_ADAPTER 2078
|
#define IDC_ADAPTER 2078
|
||||||
#define IDC_STATIC_TCOFFSETX 2079
|
|
||||||
#define IDC_STATIC_TCOFFSETY 2080
|
|
||||||
#define IDC_TCOFFSETX 2081
|
#define IDC_TCOFFSETX 2081
|
||||||
#define IDC_TCOFFSETX2 2082
|
#define IDC_TCOFFSETX2 2082
|
||||||
#define IDC_TCOFFSETY 2083
|
#define IDC_TCOFFSETY 2083
|
||||||
|
|
Loading…
Reference in New Issue