Commit f50c2954d4706af4762f7f40c6e933bcef507528

Werner Lemberg 2000-09-22T06:52:20

Fixed typo in ftimage.h Fixed sbit on/off flag in cache code.

diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h
index 4dd1c3d..d375a22 100644
--- a/include/freetype/ftimage.h
+++ b/include/freetype/ftimage.h
@@ -245,7 +245,7 @@
   /*    tags       :: A pointer to an array of `n_points' chars, giving    */
   /*                  giving each outline point's type.  If bit 0 is       */
   /*                  unset, the point is 'off' the curve, i.e. a Bezier   */
-  /*                  control point, while it is `on' when unset.          */
+  /*                  control point, while it is `on' when set.            */
   /*                                                                       */
   /*                  Bit 1 is meaningful for `off' points only.  If set,  */
   /*                  it indicates a third-order Bezier arc control point; */
diff --git a/src/cache/ftcimage.c b/src/cache/ftcimage.c
index 5f044e0..a9e4f9d 100644
--- a/src/cache/ftcimage.c
+++ b/src/cache/ftcimage.c
@@ -61,7 +61,7 @@
           load_flags |= FT_LOAD_MONOCHROME;
           
         /* disable embedded bitmaps loading if necessary */
-        if ( load_flags & ftc_image_flag_no_sbits )
+        if ( image_type & ftc_image_flag_no_sbits )
           load_flags |= FT_LOAD_NO_BITMAP;
       }
       else if ( FTC_IMAGE_FORMAT( image_type ) == ftc_image_format_outline )