test/automated/common/common.c
changeset 3476 ab99313951cd
parent 3456 6b182cbe38ac
child 3477 2c07bb579922
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;