=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: gdi32/tests: Add a second test about non-uniform ramps.
Alexandre Julliard
julliard at winehq.org
Tue Sep 20 13:08:33 CDT 2011
Module: wine
Branch: master
Commit: 61034406db98e6ed15bef5aa345d4b433f81c88b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=61034406db98e6ed15bef5aa345d4b433f81c88b
Author: André Hentschel <nerv at dawncrow.de>
Date: Mon Sep 19 21:39:12 2011 +0200
gdi32/tests: Add a second test about non-uniform ramps.
---
dlls/gdi32/tests/dc.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c
index 9420f78..2eee7ed 100644
--- a/dlls/gdi32/tests/dc.c
+++ b/dlls/gdi32/tests/dc.c
@@ -761,11 +761,19 @@ static void test_gamma(void)
ret = SetDeviceGammaRamp(hdc, &ramp);
ok(!ret, "SetDeviceGammaRamp succeeded\n");
- /* try a ramp which is not uniform */
+ /* try ramps which are not uniform */
ramp[0][0] = 0;
for (i = 1; i < 256; i++) ramp[0][i] = ramp[0][i - 1] + 512;
ret = SetDeviceGammaRamp(hdc, &ramp);
ok(ret, "SetDeviceGammaRamp failed\n");
+ ramp[0][0] = 0;
+ for (i = 2; i < 256; i+=2)
+ {
+ ramp[0][i - 1] = ramp[0][i - 2];
+ ramp[0][i] = ramp[0][i - 2] + 512;
+ }
+ ret = SetDeviceGammaRamp(hdc, &ramp);
+ ok(ret, "SetDeviceGammaRamp failed\n");
/* cleanup: set old ramp again */
ret = SetDeviceGammaRamp(hdc, &oldramp);
More information about the wine-cvs
mailing list