From ac474ff1dad4ed4766279bf1c19a68c44846d94f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 27 May 2018 20:55:36 -0400 Subject: ColorUtil: Namespace code under the Common namespace Given this is within Common, it should be in the Common namespace itself. --- Source/Core/Common/ColorUtil.cpp | 7 +++---- Source/Core/Common/ColorUtil.h | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'Source/Core/Common') diff --git a/Source/Core/Common/ColorUtil.cpp b/Source/Core/Common/ColorUtil.cpp index bce7276aa1..60d9b5b084 100644 --- a/Source/Core/Common/ColorUtil.cpp +++ b/Source/Core/Common/ColorUtil.cpp @@ -5,7 +5,7 @@ #include "Common/ColorUtil.h" #include "Common/Swap.h" -namespace ColorUtil +namespace Common { static const int s_lut5to8[] = {0x00, 0x08, 0x10, 0x18, 0x20, 0x29, 0x31, 0x39, 0x41, 0x4A, 0x52, 0x5A, 0x62, 0x6A, 0x73, 0x7B, 0x83, 0x8B, 0x94, 0x9C, 0xA4, 0xAC, @@ -70,11 +70,10 @@ void decodeCI8image(u32* dst, const u8* src, const u16* pal, int width, int heig for (int ix = 0; ix < 8; ix++) { // huh, this seems wrong. CI8, not 5A3, no? - tdst[ix] = ColorUtil::Decode5A3(Common::swap16(pal[src[ix]])); + tdst[ix] = Decode5A3(Common::swap16(pal[src[ix]])); } } } } } - -} // namespace +} // namespace Common diff --git a/Source/Core/Common/ColorUtil.h b/Source/Core/Common/ColorUtil.h index 1c90245a7b..14486a97d7 100644 --- a/Source/Core/Common/ColorUtil.h +++ b/Source/Core/Common/ColorUtil.h @@ -6,9 +6,8 @@ #include "Common/CommonTypes.h" -namespace ColorUtil +namespace Common { void decode5A3image(u32* dst, const u16* src, int width, int height); void decodeCI8image(u32* dst, const u8* src, const u16* pal, int width, int height); - -} // namespace +} // namespace Common -- cgit v1.2.3