From: Dave Airlie <[email protected]>

This takes a rendercheck against master Xephyr using fb from

18731 tests passed of 51681 total
to
49373 tests passed of 51681 total

I'll leave it up to the reader to
a) tell me why?
b) tell me if pixman or rendercheck is wrong.

Signed-off-by: Dave Airlie <[email protected]>
---
 t_gradient.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t_gradient.c b/t_gradient.c
index 4f84403..1096f9a 100644
--- a/t_gradient.c
+++ b/t_gradient.c
@@ -162,7 +162,7 @@ render_to_gradient_test(Display *dpy, picture_info *src)
 static void gradientPixel(const stop *stops, double pos, unsigned int spread, 
color4d *result)
 {
     const int PRECISION = 1<<16;
-    int ipos = pos * PRECISION - 1;
+    int ipos = (pos + 0.05) * PRECISION - 1;
     int i;
     double frac;
 
-- 
2.4.2

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to