From 915cc5d4e3c826e4d1a72d35589e50abf4f51872 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 6 Jan 2023 15:05:31 -0500 Subject: [PATCH] LibGfx: Fix incorrect bitmask in Gfx::ICC::Flags --- Userland/Libraries/LibGfx/ICCProfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/ICCProfile.h b/Userland/Libraries/LibGfx/ICCProfile.h index e4e0140699..706732a751 100644 --- a/Userland/Libraries/LibGfx/ICCProfile.h +++ b/Userland/Libraries/LibGfx/ICCProfile.h @@ -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; }