From 76553f9f06d837f437bde54f973e415434f05497 Mon Sep 17 00:00:00 2001 From: Paul Roukema Date: Sat, 13 Jun 2020 12:51:54 -0400 Subject: [PATCH] LibGfx: Fix PNG decoder handling of 16-bit RGB images --- Libraries/LibGfx/PNGLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(context); } else if (context.bit_depth == 16) { - unpack_grayscale_without_alpha(context); + unpack_triplets_without_alpha(context); } else { ASSERT_NOT_REACHED(); }