1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:48:11 +00:00

LibGfx: Remove an ICC writing FIXME, and a comment

This commit is contained in:
Nico Weber 2023-02-19 06:45:20 -05:00 committed by Andreas Kling
parent fa24f13452
commit 0f0694edb1

View file

@ -404,10 +404,8 @@ ErrorOr<ByteBuffer> encode(Profile const& profile)
}
// Omit padding after last element.
// FIXME: Is that correct?
size_t total_size = offsets.last() + tag_data_bytes.last().size();
// Leave enough room for the profile header and the tag table count.
auto bytes = TRY(ByteBuffer::create_zeroed(total_size));
for (size_t i = 0; i < tag_data_bytes.size(); ++i)