summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/PNGLoader.cpp
diff options
context:
space:
mode:
authorPaul Roukema <roukemap@gmail.com>2020-06-13 12:51:54 -0400
committerAndreas Kling <kling@serenityos.org>2020-06-13 19:47:43 +0200
commit76553f9f06d837f437bde54f973e415434f05497 (patch)
tree33e5c75e210b3981b54eee188d8ee67cc2d3db17 /Libraries/LibGfx/PNGLoader.cpp
parent1e15fa30e4e8959954c69f201a109bc040709da8 (diff)
downloadserenity-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.cpp2
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();
}