chiark / gitweb /
Ditch sanity check triggered by insane subpixel antialiasing origin/stable-3.x
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Thu, 29 Oct 2009 00:20:43 +0000 (00:20 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Thu, 29 Oct 2009 00:20:43 +0000 (00:20 +0000)
yarrg/structure.c

index 46b6853..cc1e713 100644 (file)
@@ -646,15 +646,6 @@ static inline Fixpt find_aa_density(const RgbImage *ri, Point p) {
   Fixpt alpha_mean= fixpt_mul(alpha_total, one_third);
   
   Fixpt thresh= dbl2fixpt(1.5/AAMAXVAL);
-  Fixpt alpha_min= alpha_mean - thresh*2;
-  Fixpt alpha_max= alpha_mean + thresh*2;
-
-  for (i=0; i<3; i++)
-    MUST( alpha_min <= alpha[i] && alpha[i] <= alpha_max,
-         MP(p);
-         MRGB(here);MRGB(aa_background);MRGB(aa_foreground);
-         MFP(aa_alpha_mean_max);MFP(thresh);MFP(alpha_mean);
-         MFP(alpha_min);MI(i);MFP(alpha[i]);MFP(alpha_max) );
 
   MUST( -thresh <= alpha_mean && alpha_mean <= aa_alpha_mean_max + thresh,
        MP(p);