1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +00:00

LibGfx: Fix incorrect bitmask in Gfx::ICC::Flags

This commit is contained in:
Nico Weber 2023-01-06 15:05:31 -05:00 committed by Linus Groh
parent 80ce0419b6
commit 915cc5d4e3

View file

@ -101,7 +101,7 @@ public:
// "These can indicate various hints for the CMM such as distributed processing and caching options."
// "The least-significant 16 bits are reserved for the ICC."
u16 color_management_module_bits() const { return bits() >> 16; }
u16 icc_bits() const { return bits() & 0xff; }
u16 icc_bits() const { return bits() & 0xffff; }
// "Bit position 0: Embedded profile (0 if not embedded, 1 if embedded in file)"
bool is_embedded_in_file() const { return (icc_bits() & 1) != 0; }