Commit 08edde58058c882dc895e3a72d4dfcbafa95d0f2

Werner Lemberg 2000-06-02T00:11:57

Correct wrong fix.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/base/ftgrays.c b/src/base/ftgrays.c
index 0294fbf..151ccec 100644
--- a/src/base/ftgrays.c
+++ b/src/base/ftgrays.c
@@ -1234,10 +1234,10 @@
         coverage = -coverage;
 
       while ( coverage >= 512 )
-        coverage = 512 - coverage;
+        coverage -= 512;
 
       if ( coverage > 256 )
-        coverage = 0;
+        coverage = 512 - coverage;
       else if ( coverage == 256 )
         coverage = 255;
     }