summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Clipper.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-10 21:18:38 -0400
committerLioncash <mathew1800@gmail.com>2014-08-10 21:18:38 -0400
commit6625d9cba5604d29454a6e3b540916a451cf1bf7 (patch)
tree8f9921f3846c95bb0b25c090a0dd46f85ec03651 /Source/Core/VideoBackends/Software/Clipper.cpp
parentb95d9b43dee5fa5d1e4f658b1cd3328261fd5c8b (diff)
Software: Fix various brace styling errors
Diffstat (limited to 'Source/Core/VideoBackends/Software/Clipper.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Clipper.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/Software/Clipper.cpp b/Source/Core/VideoBackends/Software/Clipper.cpp
index 5e0398f540..1efec0c995 100644
--- a/Source/Core/VideoBackends/Software/Clipper.cpp
+++ b/Source/Core/VideoBackends/Software/Clipper.cpp
@@ -45,7 +45,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace Clipper
{
- enum { NUM_CLIPPED_VERTICES = 33, NUM_INDICES = NUM_CLIPPED_VERTICES + 3 };
+ enum
+ {
+ NUM_CLIPPED_VERTICES = 33,
+ NUM_INDICES = NUM_CLIPPED_VERTICES + 3
+ };
static float m_ViewOffset[2];
@@ -72,7 +76,8 @@ namespace Clipper
}
- enum {
+ enum
+ {
SKIP_FLAG = -1,
CLIP_POS_X_BIT = 0x01,
CLIP_NEG_X_BIT = 0x02,
@@ -209,7 +214,8 @@ namespace Clipper
indices[0] = inlist[0];
indices[1] = inlist[1];
indices[2] = inlist[2];
- for (int j = 3; j < n; ++j) {
+ for (int j = 3; j < n; ++j)
+ {
indices[numIndices++] = inlist[0];
indices[numIndices++] = inlist[j - 1];
indices[numIndices++] = inlist[j];
@@ -276,9 +282,11 @@ namespace Clipper
if (!CullTest(v0, v1, v2, backface))
return;
- int indices[NUM_INDICES] = { 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG,
- SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG,
- SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG };
+ int indices[NUM_INDICES] = {
+ 0, 1, 2, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG,
+ SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG,
+ SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG, SKIP_FLAG
+ };
int numIndices = 3;
if (backface)