diff options
| author | death2droid <death2droid@gmail.com> | 2009-09-02 21:30:19 +0000 |
|---|---|---|
| committer | death2droid <death2droid@gmail.com> | 2009-09-02 21:30:19 +0000 |
| commit | 2be5d013e01bc8c6461a6b2f3ffc154c2b358cae (patch) | |
| tree | a32949e6c3fb65625139873c4859fbeddc00169c /Source/Core/VideoCommon/Src/VertexShaderManager.cpp | |
| parent | 1e016dd5228b6d911b9d3ba9f8c2e6fd12a52077 (diff) | |
Add the wide screen hack by <---Does the person even have a user name?
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4171 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/VertexShaderManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexShaderManager.cpp b/Source/Core/VideoCommon/Src/VertexShaderManager.cpp index a742ec0a84..eaf46a3a37 100644 --- a/Source/Core/VideoCommon/Src/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/Src/VertexShaderManager.cpp @@ -226,8 +226,9 @@ void VertexShaderManager::SetConstants() if (xfregs.rawProjection[6] == 0) { + bool bWidescreenHack = Projection_GetWidescreen(); // Perspective - g_fProjectionMatrix[0] = xfregs.rawProjection[0]; + g_fProjectionMatrix[0] = (bWidescreenHack ? xfregs.rawProjection[0]*0.75f : xfregs.rawProjection[0]); g_fProjectionMatrix[1] = 0.0f; g_fProjectionMatrix[2] = xfregs.rawProjection[1]; g_fProjectionMatrix[3] = 0.0f; |
