freetype2/src/autofit
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
..
Jamfile Update copyright year. 2018-01-02 09:33:57 +01:00
afangles.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afangles.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afblue.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afblue.cin [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afblue.dat Minor formatting. 2018-06-03 09:20:09 +02:00
afblue.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afblue.hin [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afcjk.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
afcjk.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afcover.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afdummy.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afdummy.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
aferrors.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afglobal.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
afglobal.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afhints.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
afhints.h [autofit] Trace `before' and `after' edges of strong points. 2018-08-30 09:56:09 +02:00
afindic.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afindic.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
aflatin.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
aflatin.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
aflatin2.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
aflatin2.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afloader.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afloader.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afmodule.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
afmodule.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afranges.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afranges.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afscript.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afshaper.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
afshaper.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afstyles.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
aftypes.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afwarp.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
afwarp.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afwrtsys.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
autofit.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
module.mk Update copyright year. 2018-01-02 09:33:57 +01:00
rules.mk Remove FT_CONFIG_OPTION_PIC and related code. 2018-05-02 20:27:48 +02:00