diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-12-09 18:22:16 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-12-10 14:49:57 -0800 |
| commit | 20257634209dba85d2cd51ad42e660090a5224e6 (patch) | |
| tree | 9b89dd27ea346edb18349c7e68b3f498c178d64f /Source/Core/VideoCommon/TextureDecoder_Generic.cpp | |
| parent | 9304fe7124c145c859daeef37a247591c68c7c61 (diff) | |
Treewide: Adjust order of includes
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_Generic.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureDecoder_Generic.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder_Generic.cpp b/Source/Core/VideoCommon/TextureDecoder_Generic.cpp index f56339453e..46a2252b7d 100644 --- a/Source/Core/VideoCommon/TextureDecoder_Generic.cpp +++ b/Source/Core/VideoCommon/TextureDecoder_Generic.cpp @@ -1,6 +1,8 @@ // Copyright 2008 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include "VideoCommon/TextureDecoder.h" + #include <algorithm> #include <cmath> @@ -9,9 +11,7 @@ #include "Common/Swap.h" #include "VideoCommon/LookUpTables.h" -#include "VideoCommon/TextureDecoder.h" #include "VideoCommon/TextureDecoder_Util.h" -//#include "VideoCommon/VideoCommon.h" // to get debug logs #include "VideoCommon/VideoConfig.h" // GameCube/Wii texture decoder @@ -116,8 +116,8 @@ static inline void DecodeBytes_IA4(u32* dst, const u8* src) static inline void DecodeBytes_RGB5A3(u32* dst, const u16* src) { #if 0 - for (int x = 0; x < 4; x++) - dst[x] = DecodePixel_RGB5A3(Common::swap16(src[x])); + for (int x = 0; x < 4; x++) + dst[x] = DecodePixel_RGB5A3(Common::swap16(src[x])); #else dst[0] = DecodePixel_RGB5A3(Common::swap16(src[0])); dst[1] = DecodePixel_RGB5A3(Common::swap16(src[1])); @@ -129,10 +129,10 @@ static inline void DecodeBytes_RGB5A3(u32* dst, const u16* src) static inline void DecodeBytes_RGBA8(u32* dst, const u16* src, const u16* src2) { #if 0 - for (int x = 0; x < 4; x++) - { - dst[x] = ((src[x] & 0xFF) << 24) | ((src[x] & 0xFF00)>>8) | (src2[x] << 8); - } + for (int x = 0; x < 4; x++) + { + dst[x] = ((src[x] & 0xFF) << 24) | ((src[x] & 0xFF00)>>8) | (src2[x] << 8); + } #else dst[0] = ((src[0] & 0xFF) << 24) | ((src[0] & 0xFF00) >> 8) | (src2[0] << 8); dst[1] = ((src[1] & 0xFF) << 24) | ((src[1] & 0xFF00) >> 8) | (src2[1] << 8); |
