From 31cfc73a09a8685cbab20502b4bc132e98e2feb5 Mon Sep 17 00:00:00 2001 From: Matthew Parlane Date: Tue, 11 Mar 2014 00:30:55 +1300 Subject: Fixes spacing for "for", "while", "switch" and "if" Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining. --- Source/Core/VideoCommon/TextureDecoder_x64.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/Core/VideoCommon/TextureDecoder_x64.cpp') diff --git a/Source/Core/VideoCommon/TextureDecoder_x64.cpp b/Source/Core/VideoCommon/TextureDecoder_x64.cpp index 875ba8f8e2..ae11374538 100644 --- a/Source/Core/VideoCommon/TextureDecoder_x64.cpp +++ b/Source/Core/VideoCommon/TextureDecoder_x64.cpp @@ -791,7 +791,7 @@ PC_TexFormat TexDecoder_Decode_real(u8 *dst, const u8 *src, int width, int heigh { u16 *ptr = (u16 *)dst + (y + iy) * width + x; u16 *s = (u16 *)(src + 8 * xStep); - for(int j = 0; j < 4; j++) + for (int j = 0; j < 4; j++) *ptr++ = Common::swap16(*s++); } @@ -825,7 +825,7 @@ PC_TexFormat TexDecoder_Decode_real(u8 *dst, const u8 *src, int width, int heigh { u16 *ptr = (u16 *)dst + (y + iy) * width + x; u16 *s = (u16 *)(src + 8 * xStep); - for(int j = 0; j < 4; j++) + for (int j = 0; j < 4; j++) *ptr++ = Common::swap16(*s++); } } @@ -974,7 +974,7 @@ PC_TexFormat TexDecoder_Decode_RGBA(u32 * dst, const u8 * src, int width, int he for (int iy = 0, xStep = 8 * yStep; iy < 8; iy++,xStep++) decodebytesC4_5A3_To_rgba32(dst + (y + iy) * width + x, src + 4 * xStep, tlutaddr); } - else if(tlutfmt == 0) + else if (tlutfmt == 0) { #pragma omp parallel for for (int y = 0; y < height; y += 8) @@ -1229,7 +1229,7 @@ PC_TexFormat TexDecoder_Decode_RGBA(u32 * dst, const u8 * src, int width, int he for (int iy = 0, xStep = 4 * yStep; iy < 4; iy++, xStep++) decodebytesC8_5A3_To_RGBA32((u32*)dst + (y + iy) * width + x, src + 8 * xStep, tlutaddr); } - else if(tlutfmt == 0) + else if (tlutfmt == 0) { #pragma omp parallel for for (int y = 0; y < height; y += 4) @@ -2068,7 +2068,7 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in { for (int x=0; x < xcnt; x++) { - switch(retval) + switch (retval) { case PC_TEX_FMT_I8: { -- cgit v1.2.3