LibGfx/JPEG: Fix faded 4-channels images

This commit is contained in:
Lucas CHOLLET 2023-05-08 12:58:14 -04:00 committed by Andreas Kling
parent e81baa0464
commit 844e374de1
Notes: sideshowbarker 2024-07-17 06:28:38 +09:00

View File

@ -1453,7 +1453,7 @@ static void inverse_dct(JPEGLoadingContext const& context, Vector<Macroblock>& m
macroblocks[mb_index].r[i * 8 + j] = clamp(macroblocks[mb_index].r[i * 8 + j] + 128, 0, 255);
macroblocks[mb_index].g[i * 8 + j] = clamp(macroblocks[mb_index].g[i * 8 + j] + 128, 0, 255);
macroblocks[mb_index].b[i * 8 + j] = clamp(macroblocks[mb_index].b[i * 8 + j] + 128, 0, 255);
macroblocks[mb_index].k[i * 8 + j] = clamp(macroblocks[mb_index].b[i * 8 + j] + 128, 0, 255);
macroblocks[mb_index].k[i * 8 + j] = clamp(macroblocks[mb_index].k[i * 8 + j] + 128, 0, 255);
}
}
}