From 0612e9bea58fb03521128e4d3b41e47409cec2fc Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 9 Jun 2013 22:04:25 +0200 Subject: [PATCH] Fixed 4bits pixel format conversion Former-commit-id: c03823b24da431d9b85ed2aae0e88ee6045036b9 --- src/Nazara/Utility/PixelFormat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nazara/Utility/PixelFormat.cpp b/src/Nazara/Utility/PixelFormat.cpp index e8e3d632d..833279026 100644 --- a/src/Nazara/Utility/PixelFormat.cpp +++ b/src/Nazara/Utility/PixelFormat.cpp @@ -16,7 +16,7 @@ namespace inline nzUInt8 c4to8(nzUInt8 c) { - return c >> 4; + return c << 4; } inline nzUInt8 c5to4(nzUInt8 c) @@ -31,7 +31,7 @@ namespace inline nzUInt8 c8to4(nzUInt8 c) { - return c << 4; + return c >> 4; } inline nzUInt8 c8to5(nzUInt8 c)