[1/4] gdiplus: Add tests for drawing recorded metafiles.
Vincent Povirk
madewokherd at gmail.com
Wed Oct 31 16:06:09 CDT 2012
-------------- next part --------------
From efa8ccafda7fa72a3af56b8efc857e4e6f2e414d Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Wed, 31 Oct 2012 13:24:20 -0500
Subject: [PATCH 1/4] gdiplus: Add tests for drawing recorded metafiles.
---
dlls/gdiplus/tests/metafile.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/dlls/gdiplus/tests/metafile.c b/dlls/gdiplus/tests/metafile.c
index 9530b0c..31374a5 100644
--- a/dlls/gdiplus/tests/metafile.c
+++ b/dlls/gdiplus/tests/metafile.c
@@ -426,6 +426,21 @@ static void test_getdc(void)
expect(Ok, stat);
expect(0, color);
+ stat = GdipBitmapSetPixel(bitmap, 15, 15, 0);
+ expect(Ok, stat);
+
+ stat = GdipDrawImagePointsRect(graphics, (GpImage*)metafile, dst_points, 3,
+ 0.0, 0.0, 100.0, 100.0, UnitPixel, NULL, NULL, NULL);
+ todo_wine expect(Ok, stat);
+
+ stat = GdipBitmapGetPixel(bitmap, 15, 15, &color);
+ expect(Ok, stat);
+ expect(0, color);
+
+ stat = GdipBitmapGetPixel(bitmap, 50, 50, &color);
+ expect(Ok, stat);
+ todo_wine expect(0xff0000ff, color);
+
stat = GdipDeleteGraphics(graphics);
expect(Ok, stat);
@@ -530,6 +545,21 @@ static void test_emfonly(void)
expect(Ok, stat);
expect(0xff0000ff, color);
+ stat = GdipBitmapSetPixel(bitmap, 50, 50, 0);
+ expect(Ok, stat);
+
+ stat = GdipDrawImagePointsRect(graphics, (GpImage*)metafile, dst_points, 3,
+ 0.0, 0.0, 100.0, 100.0, UnitPixel, NULL, NULL, NULL);
+ todo_wine expect(Ok, stat);
+
+ stat = GdipBitmapGetPixel(bitmap, 15, 15, &color);
+ expect(Ok, stat);
+ expect(0, color);
+
+ stat = GdipBitmapGetPixel(bitmap, 50, 50, &color);
+ expect(Ok, stat);
+ todo_wine expect(0xff0000ff, color);
+
stat = GdipDeleteGraphics(graphics);
expect(Ok, stat);
--
1.7.9.5
More information about the wine-patches
mailing list