Commit 0644fd49 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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

parent 0a4bedde
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment