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:
parent
5c6247f7e2
commit
0f3db73628
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue