Re: [PATCH 05/10 v4] gdiplus: Support SetTextRenderingHint in metafiles
2 Jul
2017
2 Jul
'17
8:34 a.m.
On 06/30/2017 07:14 PM, Piotr Caban wrote:
+GpStatus METAFILE_AddSimpleProperty(GpMetafile *metafile, SHORT prop, SHORT val) +{ + EmfPlusRecordHeader *hint_record; + GpStatus stat; + + if (metafile->metafile_type != MetafileTypeEmfPlusOnly && metafile->metafile_type != MetafileTypeEmfPlusDual) + return Ok; + + stat = METAFILE_AllocateRecord(metafile, sizeof(*hint_record), (void**)&hint_record); + if (stat != Ok) return stat; + + hint_record->Type = prop; + hint_record->Flags = val; + + METAFILE_WriteRecords(metafile); + return Ok; +} This is not specific to text rendering hint parameter anymore, local variable should be just "record".
3085
Age (days ago)
3086
Last active (days ago)
1 comments
2 participants
participants (2)
-
Nikolay Sivov -
Piotr Caban