[PATCH 05/10 v4] gdiplus: Support SetTextRenderingHint in metafiles
Nikolay Sivov
nsivov at codeweavers.com
Sun Jul 2 03:34:51 CDT 2017
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".
More information about the wine-devel
mailing list