freetype2/src
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
..
autofit Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
base Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
bdf [bdf] Speed up charmap access. 2018-09-23 21:46:26 -04:00
bzip2 [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
cache Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
cff Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
cid Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
gxvalid Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
gzip [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
lzw [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
otvalid Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
pcf [pcf] Replace charmap implementation. 2018-09-20 22:14:46 -04:00
pfr Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
psaux Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
pshinter [pshinter] Handle numeric overflow. 2018-09-17 08:03:57 +02:00
psnames */*: s/PSNames/psnames/. 2018-09-03 09:08:47 +02:00
raster [raster] Fix disappearing vertical lines (#54589). 2018-09-21 11:09:27 +02:00
sfnt [sfnt] Comment fix. 2018-09-15 06:14:18 +02:00
smooth Consolidate bitmap presetting and size assessment. 2018-08-30 23:28:30 -04:00
tools * src/tools/docmaker: Remove `docmaker'. 2018-08-25 16:18:21 +05:30
truetype Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
type1 Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
type42 Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
winfonts Remove unused fields. 2018-09-18 17:11:48 -04:00
Jamfile Update copyright year. 2018-01-02 09:33:57 +01:00