Alexander Dorofeyev : ddraw/tests: Additional colorfill test in p8_primary_test.

Alexandre Julliard julliard at winehq.org
Thu Apr 3 05:43:56 CDT 2008


Module: wine
Branch: master
Commit: 003f679cbe105e95b30c40c6b88df02e3722876e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=003f679cbe105e95b30c40c6b88df02e3722876e

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Thu Apr  3 00:12:11 2008 +0300

ddraw/tests: Additional colorfill test in p8_primary_test.

---

 dlls/ddraw/tests/visual.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c
index dc4ff47..8eb39cd 100644
--- a/dlls/ddraw/tests/visual.c
+++ b/dlls/ddraw/tests/visual.c
@@ -1860,6 +1860,17 @@ static void p8_primary_test()
             "got R %02X G %02X B %02X, expected R FF G 00 B 00\n",
             GetRValue(color), GetGValue(color), GetBValue(color));
 
+    memset(&ddbltfx, 0, sizeof(ddbltfx));
+    ddbltfx.dwSize = sizeof(ddbltfx);
+    U5(ddbltfx).dwFillColor = 1;
+    hr = IDirectDrawSurface_Blt(Surface1, NULL, NULL, NULL, DDBLT_COLORFILL | DDBLT_WAIT, &ddbltfx);
+    ok(hr == DD_OK, "IDirectDrawSurface_Blt failed with %08x\n", hr);
+
+    color = getPixelColor_GDI(Surface1, 10, 10);
+    ok(GetRValue(color) == 0 && GetGValue(color) == 0xFF && GetBValue(color) == 0,
+            "got R %02X G %02X B %02X, expected R 00 G FF B 00\n",
+            GetRValue(color), GetGValue(color), GetBValue(color));
+
     memset (&ddsd, 0, sizeof (ddsd));
     ddsd.dwSize = sizeof (ddsd);
     ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT;




More information about the wine-cvs mailing list