diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-03-10 23:40:16 +0100 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-03-10 23:40:16 +0100 |
| commit | ede46556d9b5043113e19359fee97eb09f9c872c (patch) | |
| tree | 54442e504fc06d44e80a7351be46a1fead5ad356 /Source/Core/VideoBackends/Software/Tev.cpp | |
| parent | 52ed10213d085caec6007ae3b3856e50f282c756 (diff) | |
| parent | 31cfc73a09a8685cbab20502b4bc132e98e2feb5 (diff) | |
Merge pull request #155 from Parlane/codestyle_fixes
Fixes spacing for "for", "while", "switch" and "if"
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Tev.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp index dc4c4904cf..ad21496e88 100644 --- a/Source/Core/VideoBackends/Software/Tev.cpp +++ b/Source/Core/VideoBackends/Software/Tev.cpp @@ -126,7 +126,7 @@ inline s16 Clamp1024(s16 in) void Tev::SetRasColor(int colorChan, int swaptable) { - switch(colorChan) + switch (colorChan) { case 0: // Color0 { @@ -209,7 +209,7 @@ void Tev::DrawColorCompare(TevStageCombiner::ColorCombiner &cc) InputRegType InputReg; - switch(cmp) { + switch (cmp) { case TEVCMP_R8_GT: { a = *m_ColorInputLUT[cc.a][RED_INP] & 0xff; @@ -336,7 +336,7 @@ void Tev::DrawAlphaCompare(TevStageCombiner::AlphaCombiner &ac) InputRegType InputReg; - switch(cmp) { + switch (cmp) { case TEVCMP_R8_GT: { a = m_AlphaInputLUT[ac.a][RED_C] & 0xff; @@ -415,7 +415,7 @@ void Tev::DrawAlphaCompare(TevStageCombiner::AlphaCombiner &ac) static bool AlphaCompare(int alpha, int ref, int comp) { - switch(comp) { + switch (comp) { case ALPHACMP_ALWAYS: return true; case ALPHACMP_NEVER: return false; case ALPHACMP_LEQUAL: return alpha <= ref; @@ -497,7 +497,7 @@ void Tev::Indirect(unsigned int stageNum, s32 s, s32 t) bias[2] = indirect.bias&4?biasValue:0; // format - switch(indirect.fmt) + switch (indirect.fmt) { case ITF_8: indcoord[0] = indmap[TextureSampler::ALP_SMP] + bias[0]; @@ -756,7 +756,7 @@ void Tev::Draw() } - if(bpmem.fogRange.Base.Enabled) + if (bpmem.fogRange.Base.Enabled) { // TODO: This is untested and should definitely be checked against real hw. // - No idea if offset is really normalized against the viewport width or against the projection matrix or yet something else |
