mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Better DX9 implementation of the Wild Arms Hack. Thanks, KrossX :p
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5122 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
ac97331388
commit
144a7a13fb
|
@ -263,7 +263,7 @@ void GSSettingsDlg::UpdateControls()
|
|||
|
||||
// Hacks
|
||||
EnableWindow(GetDlgItem(m_hWnd, IDC_HACKS_ENABLED), hw);
|
||||
//EnableWindow(GetDlgItem(m_hWnd, IDC_HACKSBUTTON), hw && IsDlgButtonChecked(m_hWnd, IDC_HACKS_ENABLED) == BST_CHECKED);
|
||||
EnableWindow(GetDlgItem(m_hWnd, IDC_HACKSBUTTON), hw /*&& IsDlgButtonChecked(m_hWnd, IDC_HACKS_ENABLED) == BST_CHECKED*/);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -775,13 +775,13 @@ VS_OUTPUT vs_main(VS_INPUT input)
|
|||
if(VS_FST)
|
||||
{
|
||||
#if VS_WILDHACK == 1
|
||||
output.t.x = (input.t.x >= 16.0 ? input.t.x - 16.0 : input.t.x) * TextureScale.x;
|
||||
output.t.y = (input.t.y >= 16.0 ? input.t.y - 16.0 : input.t.y) * TextureScale.y;
|
||||
output.t.x = (frac(floor(input.t.x / 16.0)/2.0) > 0.4 ? input.t.x - 16.0 : input.t.x) * TextureScale.x;
|
||||
output.t.y = (frac(floor(input.t.y / 16.0)/2.0) > 0.4 ? input.t.y - 16.0 : input.t.y) * TextureScale.y;
|
||||
#elif VS_WILDHACK == 2
|
||||
output.t.x = (input.t.x >= 8.0 ? input.t.x - 8.0 : input.t.x) * TextureScale.x;
|
||||
output.t.y = (input.t.y >= 8.0 ? input.t.y - 8.0 : input.t.y) * TextureScale.y;
|
||||
output.t.x = (frac(floor(input.t.x / 8.0)/2.0) > 0.4 ? input.t.x - 8.0 : input.t.x) * TextureScale.x;
|
||||
output.t.y = (frac(floor(input.t.y / 8.0)/2.0) > 0.4 ? input.t.y - 8.0 : input.t.y) * TextureScale.y;
|
||||
#else
|
||||
output.t.xy = input.t * TextureScale;
|
||||
output.t.xy = input.t * TextureScale;
|
||||
#endif
|
||||
output.t.w = 1.0f;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue