From 86461481ae1080d6d6e5e1a725cec4be9fbda081 Mon Sep 17 00:00:00 2001 From: tobid7 Date: Wed, 7 Jan 2026 18:42:16 +0100 Subject: [PATCH] No comemnt on this :/ --- source/pica.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/pica.cpp b/source/pica.cpp index 8e9716e..ac1be69 100644 --- a/source/pica.cpp +++ b/source/pica.cpp @@ -164,12 +164,12 @@ CTRFF_API void DecodeImage(std::vector& ret, * by this we either extract the high or low one and multiply * by 17 aka 0x11 to get the resulting A8 Value */ - ctrff::u8 a4 = src & 1 ? ((ret[src >> 1] >> 4) & 0xf) * 0x11 - : (ret[src >> 1] & 0xf) * 0x11; - pixels[dst + 0] = a4; - pixels[dst + 1] = a4; - pixels[dst + 2] = a4; - pixels[dst + 3] = 255; + ctrff::u8 a4 = src & 1 ? ((pixels[src >> 1] >> 4) & 0xf) * 0x11 + : (pixels[src >> 1] & 0xf) * 0x11; + ret[dst + 0] = a4; + ret[dst + 1] = a4; + ret[dst + 2] = a4; + ret[dst + 3] = 255; } } break;