diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-03-29 11:05:44 +0100 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-03-29 11:05:44 +0100 |
| commit | 664c8d30a055f4762a2a60be77c1c8eaec1a5d85 (patch) | |
| tree | ad290b1f173ae3b3c70f4841efd8c46091409579 /Source/Core/VideoCommon/VertexShaderManager.cpp | |
| parent | 92fc7c64d6980c8000f8b2a8c794c7968cb74da1 (diff) | |
Remove all trailing whitespaces from our codebase.
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexShaderManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp index 337807bb06..f0e4be9040 100644 --- a/Source/Core/VideoCommon/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/VertexShaderManager.cpp @@ -135,7 +135,7 @@ static void ViewportCorrectionMatrix(Matrix44& result) float intendedY = xfregs.viewport.yOrig + xfregs.viewport.ht - scissorYOff; float intendedWd = 2.0f * xfregs.viewport.wd; float intendedHt = -2.0f * xfregs.viewport.ht; - + if (intendedWd < 0.f) { intendedX += intendedWd; @@ -152,11 +152,11 @@ static void ViewportCorrectionMatrix(Matrix44& result) float Y = (intendedY >= 0.f) ? intendedY : 0.f; float Wd = (X + intendedWd <= EFB_WIDTH) ? intendedWd : (EFB_WIDTH - X); float Ht = (Y + intendedHt <= EFB_HEIGHT) ? intendedHt : (EFB_HEIGHT - Y); - + Matrix44::LoadIdentity(result); if (Wd == 0 || Ht == 0) return; - + result.data[4*0+0] = intendedWd / Wd; result.data[4*0+3] = (intendedWd - 2.f * (X - intendedX)) / Wd - 1.f; result.data[4*1+1] = intendedHt / Ht; @@ -363,7 +363,7 @@ void VertexShaderManager::SetConstants() dirty = true; // This is so implementation-dependent that we can't have it here. g_renderer->SetViewport(); - + // Update projection if the viewport isn't 1:1 useable if (!g_ActiveConfig.backend_info.bSupportsOversizedViewports) { |
