From 53203c048ab3b74b26ec7c7297fd08a623a565ba Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Tue, 1 Mar 2016 16:48:18 +0600 Subject: [PATCH] Fix IA88_RGBA4444 convertor on non-windows platforms. Fixed issue #280 and issue #759 --- src/convert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/convert.h b/src/convert.h index a535836b..65e679af 100644 --- a/src/convert.h +++ b/src/convert.h @@ -300,8 +300,8 @@ inline u16 IA88_RGBA4444( u16 color ) or al, ch } #else // WIN32_ASM - u8 i = color >> 12; - u8 a = (color >> 4) & 0x000F; + u8 a = color >> 12; + u8 i = (color >> 4) & 0x000F; return (i << 12) | (i << 8) | (i << 4) | a; #endif // WIN32_ASM }