Skip to content
Snippets Groups Projects
Commit 0d8428fb authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard
Browse files

gdiplus: Switch to STRETCH_HALFTONE mode before playing a blit record.


This is done even if the emf contains a previous EMR_SETSTRETCHBLTMODE
record.

Thanks to Sebastián Aedo for some of the testing.

Signed-off-by: default avatarHuw Davies <huw@codeweavers.com>
Signed-off-by: default avatarEsme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 74a42c54
No related branches found
No related tags found
No related merge requests found
......@@ -2486,6 +2486,9 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
record->nSize = dataSize + 8;
memcpy(record->dParm, data, dataSize);
if (record->iType == EMR_BITBLT || record->iType == EMR_STRETCHBLT)
SetStretchBltMode(metafile->playback_dc, STRETCH_HALFTONE);
if(PlayEnhMetaFileRecord(metafile->playback_dc, metafile->handle_table,
record, metafile->handle_count) == 0)
ERR("PlayEnhMetaFileRecord failed\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment