gdiplus: Support GdipSetPixelOffsetMode in metafiles.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2017-07-11 10:59:03 +02:00 committed by Alexandre Julliard
parent 683315d111
commit f7160291df
1 changed files with 13 additions and 0 deletions

View File

@ -5913,6 +5913,19 @@ GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
if(graphics->busy) if(graphics->busy)
return ObjectBusy; return ObjectBusy;
if(graphics->pixeloffset == mode)
return Ok;
if(graphics->image && graphics->image->type == ImageTypeMetafile)
{
GpStatus stat;
stat = METAFILE_AddSimpleProperty((GpMetafile*)graphics->image,
EmfPlusRecordTypeSetPixelOffsetMode, mode);
if(stat != Ok)
return stat;
}
graphics->pixeloffset = mode; graphics->pixeloffset = mode;
return Ok; return Ok;