diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-27 19:08:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-27 19:10:18 +0200 |
commit | 7bb6b1d44d2cb00b21fbbd9473beb22646b71f92 (patch) | |
tree | 9521cbf3bae01b1365def51f2c6771b3f8886a7e | |
parent | 9f752ce1f6ec7b7544b15a6e48682da5065c297b (diff) | |
download | serenity-7bb6b1d44d2cb00b21fbbd9473beb22646b71f92.zip |
LibGfx: Fix dumb typo in PNG decoder
'=' is not the same as '*', indeed.
-rw-r--r-- | Libraries/LibGfx/PNGLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGfx/PNGLoader.cpp b/Libraries/LibGfx/PNGLoader.cpp index 6d4b8678ce..e732ac2e24 100644 --- a/Libraries/LibGfx/PNGLoader.cpp +++ b/Libraries/LibGfx/PNGLoader.cpp @@ -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) { |