freetype2/include/freetype
Werner Lemberg a9af691481 Fix handing of `FT_Bool'.
Before this commit we had code like

  (FT_Bool)( globals->glyph_styles[gindex] & 0x8000)

Since `FT_Bool' is defined to be an `unsigned char', the code
evaluated to something like

  (unsigned char)( 0x8532 & 0x8000)

which in turn expanded to

  (unsigned char)( 0x8000)

and finally yielded 0x00 – i.e., false – not as expected.

Problem reported and analyzed by Tony Smith <tony.smith@macro4.com>.

* include/freetype/fttypes.h (FT_BOOL): Add a comparison against
zero so that we always have a Boolean expression.

*/*: Replace castings to `FT_Bool' with calls to `FT_BOOL' where
possible.
2018-09-25 09:10:09 +02:00
..
config Synchronize `ftconfig' files. 2018-09-05 11:45:05 +02:00
internal [base] Remove unused function `FT_GlyphLoader_CopyPoints'. 2018-09-20 06:26:34 +02:00
freetype.h Improve documentation of `FT_LOAD_NO_RECURSE'. 2018-09-21 12:50:32 +02:00
ftadvanc.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftbbox.h * include/*.*: Convert comments to markdown. 2018-08-25 16:16:56 +05:30
ftbdf.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftbitmap.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftbzip2.h Make `/****...' comments in public headers uniformly end on column 77. 2018-09-04 08:00:58 +02:00
ftcache.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftchapters.h Make `/****...' comments in public headers uniformly end on column 77. 2018-09-04 08:00:58 +02:00
ftcid.h Make `/****...' comments in public headers uniformly end on column 77. 2018-09-04 08:00:58 +02:00
ftcolor.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftdriver.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
fterrdef.h * include/*.*: Convert comments to markdown. 2018-08-25 16:16:56 +05:30
fterrors.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftfntfmt.h * include/*.*: Convert comments to markdown. 2018-08-25 16:16:56 +05:30
ftgasp.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftglyph.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftgxval.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftgzip.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftimage.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftincrem.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftlcdfil.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftlist.h * include/*.*: Convert comments to markdown. 2018-08-25 16:16:56 +05:30
ftlzw.h Make `/****...' comments in public headers uniformly end on column 77. 2018-09-04 08:00:58 +02:00
ftmac.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftmm.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftmodapi.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftmoderr.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftotval.h Make `/****...' comments in public headers uniformly end on column 77. 2018-09-04 08:00:58 +02:00
ftoutln.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftparams.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftpfr.h Make `/****...' comments in public headers uniformly end on column 77. 2018-09-04 08:00:58 +02:00
ftrender.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftsizes.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftsnames.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftstroke.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftsynth.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ftsystem.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
fttrigon.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
fttypes.h Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
ftwinfnt.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
t1tables.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
ttnameid.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
tttables.h More '...' vs. `...` fixes in API documentation. 2018-09-04 10:37:44 +02:00
tttags.h [GSoC] include/*.*, devel/*.*: Convert block comments to `light' style. 2018-06-03 22:00:42 +02:00