comparison test/automated/common/common.c @ 3476:ab99313951cd

Increased tolerance a little bit more for multiple blending passes accumulating error.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 21 Nov 2009 07:46:12 +0000
parents 6b182cbe38ac
children 2c07bb579922
comparison
equal deleted inserted replaced
3475:3bd01435287f 3476:ab99313951cd
61 dist += (G-pd[1])*(G-pd[1]); 61 dist += (G-pd[1])*(G-pd[1]);
62 dist += (B-pd[2])*(B-pd[2]); 62 dist += (B-pd[2])*(B-pd[2]);
63 dist += (A-pd[3])*(A-pd[3]); 63 dist += (A-pd[3])*(A-pd[3]);
64 } 64 }
65 /* Allow up to sqrt(32) difference in blending accuracy */ 65 /* Allow up to sqrt(32) difference in blending accuracy */
66 if (dist > 32) { 66 if (dist > 64) {
67 /*printf("pixel %d,%d varies by %d\n", i, j, dist);*/ 67 /*printf("pixel %d,%d varies by %d\n", i, j, dist);*/
68 ++ret; 68 ++ret;
69 } 69 }
70 } 70 }
71 break; 71 break;