Commit 30ba4657 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus/metafile: Fix flags handling for EMF+ property records.

parent 1df5f2fa
......@@ -1834,15 +1834,15 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
}
case EmfPlusRecordTypeSetPixelOffsetMode:
{
return GdipSetPixelOffsetMode(real_metafile->playback_graphics, (flags >> 8) & 0xf);
return GdipSetPixelOffsetMode(real_metafile->playback_graphics, flags & 0xff);
}
case EmfPlusRecordTypeSetCompositingQuality:
{
return GdipSetCompositingQuality(real_metafile->playback_graphics, (flags >> 8) & 0xf);
return GdipSetCompositingQuality(real_metafile->playback_graphics, flags & 0xff);
}
case EmfPlusRecordTypeSetInterpolationMode:
{
return GdipSetInterpolationMode(real_metafile->playback_graphics, (flags >> 8) & 0xf);
return GdipSetInterpolationMode(real_metafile->playback_graphics, flags & 0xff);
}
default:
FIXME("Not implemented for record type %x\n", recordType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment