From 321224d2f680f2b78bf2f3e53d977a51d82d136a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Sun, 18 Sep 2011 19:07:33 +0200 Subject: [PATCH] winex11: Multiply the error tolerance by the table caused error magnification. --- dlls/gdi32/tests/dc.c | 2 +- dlls/winex11.drv/xvidmode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c index 9e2b3eb47e9..9420f78a1e2 100644 --- a/dlls/gdi32/tests/dc.c +++ b/dlls/gdi32/tests/dc.c @@ -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); diff --git a/dlls/winex11.drv/xvidmode.c b/dlls/winex11.drv/xvidmode.c index 2d8a4eb7b7d..1f13737b792 100644 --- a/dlls/winex11.drv/xvidmode.c +++ b/dlls/winex11.drv/xvidmode.c @@ -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; } -- 2.11.4.GIT