diff options
author | Paul Roukema <roukemap@gmail.com> | 2020-06-13 12:51:54 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-13 19:47:43 +0200 |
commit | 76553f9f06d837f437bde54f973e415434f05497 (patch) | |
tree | 33e5c75e210b3981b54eee188d8ee67cc2d3db17 /Libraries/LibGfx/PNGLoader.cpp | |
parent | 1e15fa30e4e8959954c69f201a109bc040709da8 (diff) | |
download | serenity-76553f9f06d837f437bde54f973e415434f05497.zip |
LibGfx: Fix PNG decoder handling of 16-bit RGB images
Diffstat (limited to 'Libraries/LibGfx/PNGLoader.cpp')
-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 bc2d6630c4..199da1b200 100644 --- a/Libraries/LibGfx/PNGLoader.cpp +++ b/Libraries/LibGfx/PNGLoader.cpp @@ -387,7 +387,7 @@ NEVER_INLINE FLATTEN static void unfilter(PNGLoadingContext& context) if (context.bit_depth == 8) { unpack_triplets_without_alpha<u8>(context); } else if (context.bit_depth == 16) { - unpack_grayscale_without_alpha<u16>(context); + unpack_triplets_without_alpha<u16>(context); } else { ASSERT_NOT_REACHED(); } |