mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibGfx: Fix dumb typo in PNG decoder
'=' is not the same as '*', indeed.
This commit is contained in:
parent
9f752ce1f6
commit
7bb6b1d44d
Notes:
sideshowbarker
2024-07-19 04:33:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7bb6b1d44d2
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ NEVER_INLINE FLATTEN static void unfilter(PNGLoadingContext& context)
|
|||
} else if (context.bit_depth == 16) {
|
||||
unpack_grayscale_without_alpha<u16>(context);
|
||||
} else if (context.bit_depth == 1 || context.bit_depth == 2 || context.bit_depth == 4) {
|
||||
auto bit_depth_squared = context.bit_depth = context.bit_depth;
|
||||
auto bit_depth_squared = context.bit_depth * context.bit_depth;
|
||||
auto pixels_per_byte = 8 / context.bit_depth;
|
||||
auto mask = (1 << context.bit_depth) - 1;
|
||||
for (int y = 0; y < context.height; ++y) {
|
||||
|
|
Loading…
Add table
Reference in a new issue