=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: gdi32/tests: Add a test about non-uniform ramps.

Alexandre Julliard julliard at winehq.org
Mon Sep 19 13:48:41 CDT 2011


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun Sep 18 19:06:56 2011 +0200

gdi32/tests: Add a test about non-uniform ramps.

---

 dlls/gdi32/tests/dc.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c
index efa7d53..9e2b3eb 100644
--- a/dlls/gdi32/tests/dc.c
+++ b/dlls/gdi32/tests/dc.c
@@ -761,6 +761,12 @@ static void test_gamma(void)
     ret = SetDeviceGammaRamp(hdc, &ramp);
     ok(!ret, "SetDeviceGammaRamp succeeded\n");
 
+    /* try a ramp which is not uniform */
+    ramp[0][0] = 0;
+    for (i = 1; i < 256; i++) ramp[0][i] = ramp[0][i - 1] + 512;
+    ret = SetDeviceGammaRamp(hdc, &ramp);
+    todo_wine ok(ret, "SetDeviceGammaRamp failed\n");
+
     /* cleanup: set old ramp again */
     ret = SetDeviceGammaRamp(hdc, &oldramp);
     ok(ret, "SetDeviceGammaRamp failed\n");




More information about the wine-cvs mailing list