mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibGfx: Fix PNG decoder handling of 16-bit RGB images
This commit is contained in:
parent
1e15fa30e4
commit
76553f9f06
Notes:
sideshowbarker
2024-07-19 05:40:07 +09:00
Author: https://github.com/MegabytePhreak 🔰
Commit: 76553f9f06
Pull-request: https://github.com/SerenityOS/serenity/pull/2554
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue