gdiplus: Implement playback of Clear operations.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Vincent Povirk 2016-06-24 12:51:42 -05:00 committed by Alexandre Julliard
parent 5c6247f7e2
commit 0f3db73628
2 changed files with 7 additions and 1 deletions

View File

@ -700,6 +700,12 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
case EmfPlusRecordTypeGetDC:
METAFILE_PlaybackGetDC((GpMetafile*)metafile);
break;
case EmfPlusRecordTypeClear:
{
EmfPlusClear *record = (EmfPlusClear*)header;
return GdipGraphicsClear(metafile->playback_graphics, record->Color);
}
case EmfPlusRecordTypeFillRects:
{
EmfPlusFillRects *record = (EmfPlusFillRects*)header;

View File

@ -928,7 +928,7 @@ static void test_clear(void)
stat = GdipBitmapGetPixel(bitmap, 15, 15, &color);
expect(Ok, stat);
todo_wine expect(0xffffff00, color);
expect(0xffffff00, color);
stat = GdipBitmapGetPixel(bitmap, 25, 25, &color);
expect(Ok, stat);