mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibGfx: Write multiLocalizedUnicodeType with multiple strings correctly
Found by reencoding Tests/LibGfx/test-inputs/icc-v2.png, the 'dscm' tag.
This commit is contained in:
parent
07bf2d944c
commit
0e66a5c3ed
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ static ErrorOr<ByteBuffer> encode_multi_localized_unicode(MultiLocalizedUnicodeT
|
|||
records[i].country_code = tag_data.records()[i].iso_3166_1_country_code;
|
||||
records[i].string_length_in_bytes = utf16_strings[i].size() * sizeof(u16);
|
||||
records[i].string_offset_in_bytes = offset;
|
||||
offset += records[i].string_offset_in_bytes;
|
||||
offset += records[i].string_length_in_bytes;
|
||||
}
|
||||
|
||||
auto* string_table = bit_cast<BigEndian<u16>*>(bytes.data() + header_and_record_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue