1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:37:35 +00:00

LibGfx: Make ICCHeader use FourCC types for fourcc fields

No behavior change. Arguably more expressive.
This commit is contained in:
Nico Weber 2023-01-18 22:16:10 -05:00 committed by Linus Groh
parent 046c79b468
commit e5234f582d
2 changed files with 14 additions and 12 deletions

View file

@ -38,6 +38,8 @@ struct [[gnu::packed]] DistinctFourCC {
char c2() const { return (value >> 8) & 0xff; }
char c3() const { return value & 0xff; }
bool operator==(DistinctFourCC b) const { return value == b.value; }
u32 value { 0 };
};