1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 02:57:44 +00:00

LibGfx+icc: Print primary platform

There's a small, old-timey list of platforms in the spec, but as far
as I can tell nobody is using additional platforms on Linux or Android
or what. So let's try going with an enum class instead of the FourCC
machinery for now.
This commit is contained in:
Nico Weber 2023-01-07 15:22:15 -05:00 committed by Sam Atkins
parent 6d70b6a3a7
commit aee7c44064
3 changed files with 42 additions and 1 deletions

View file

@ -37,6 +37,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
outln("data color space: {}", Gfx::ICC::data_color_space_name(profile->data_color_space()));
outln("connection space: {}", Gfx::ICC::profile_connection_space_name(profile->connection_space()));
outln("creation date and time: {}", Core::DateTime::from_timestamp(profile->creation_timestamp()).to_deprecated_string());
outln("primary platform: {}", Gfx::ICC::primary_platform_name(profile->primary_platform()));
auto flags = profile->flags();
outln("flags: 0x{:08x}", flags.bits());