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:
parent
683315d111
commit
f7160291df
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue