mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibGfx: Fix PNG decoder handling of 16-bit RGB images
This commit is contained in:
parent
1e15fa30e4
commit
76553f9f06
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) {
|
if (context.bit_depth == 8) {
|
||||||
unpack_triplets_without_alpha<u8>(context);
|
unpack_triplets_without_alpha<u8>(context);
|
||||||
} else if (context.bit_depth == 16) {
|
} else if (context.bit_depth == 16) {
|
||||||
unpack_grayscale_without_alpha<u16>(context);
|
unpack_triplets_without_alpha<u16>(context);
|
||||||
} else {
|
} else {
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue