Commit 321224d2 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winex11: Multiply the error tolerance by the table caused error magnification.

parent 0644fd49
......@@ -765,7 +765,7 @@ static void test_gamma(void)
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");
ok(ret, "SetDeviceGammaRamp failed\n");
/* cleanup: set old ramp again */
ret = SetDeviceGammaRamp(hdc, &oldramp);
......
......@@ -335,7 +335,7 @@ static BOOL ComputeGammaFromRamp(WORD ramp[256], float *gamma)
return FALSE;
}
/* check that the gamma is reasonably uniform across the ramp */
if (g_max - g_min > 0.1) {
if (g_max - g_min > 12.8) {
ERR("ramp not uniform (max=%f, min=%f, avg=%f), rejected\n", g_max, g_min, g_avg);
return FALSE;
}
......
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