Commit 0f3db736 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Implement playback of Clear operations.

parent 5c6247f7
...@@ -700,6 +700,12 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile, ...@@ -700,6 +700,12 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
case EmfPlusRecordTypeGetDC: case EmfPlusRecordTypeGetDC:
METAFILE_PlaybackGetDC((GpMetafile*)metafile); METAFILE_PlaybackGetDC((GpMetafile*)metafile);
break; break;
case EmfPlusRecordTypeClear:
{
EmfPlusClear *record = (EmfPlusClear*)header;
return GdipGraphicsClear(metafile->playback_graphics, record->Color);
}
case EmfPlusRecordTypeFillRects: case EmfPlusRecordTypeFillRects:
{ {
EmfPlusFillRects *record = (EmfPlusFillRects*)header; EmfPlusFillRects *record = (EmfPlusFillRects*)header;
......
...@@ -928,7 +928,7 @@ static void test_clear(void) ...@@ -928,7 +928,7 @@ static void test_clear(void)
stat = GdipBitmapGetPixel(bitmap, 15, 15, &color); stat = GdipBitmapGetPixel(bitmap, 15, 15, &color);
expect(Ok, stat); expect(Ok, stat);
todo_wine expect(0xffffff00, color); expect(0xffffff00, color);
stat = GdipBitmapGetPixel(bitmap, 25, 25, &color); stat = GdipBitmapGetPixel(bitmap, 25, 25, &color);
expect(Ok, stat); expect(Ok, stat);
......
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