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

This commit is contained in:
André Hentschel 2011-09-18 19:06:56 +02:00 committed by Alexandre Julliard
parent 0a4bedde43
commit 0644fd499f
1 changed files with 6 additions and 0 deletions

View File

@ -761,6 +761,12 @@ static void test_gamma(void)
ret = SetDeviceGammaRamp(hdc, &ramp); ret = SetDeviceGammaRamp(hdc, &ramp);
ok(!ret, "SetDeviceGammaRamp succeeded\n"); 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 */ /* cleanup: set old ramp again */
ret = SetDeviceGammaRamp(hdc, &oldramp); ret = SetDeviceGammaRamp(hdc, &oldramp);
ok(ret, "SetDeviceGammaRamp failed\n"); ok(ret, "SetDeviceGammaRamp failed\n");