[cache] Don't use `labs'.
This is the only place in FreeType where this function was used. * include/config/ftstdlib.h (ft_labs): Remove. * src/cache/ftcimage.c (ftc_inode_weight): Replace `ft_labs' with `FT_ABS'.
This commit is contained in:
parent
3aaebe3a91
commit
4b9234b8a2
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2015-02-25 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[cache] Don't use `labs'.
|
||||||
|
|
||||||
|
This is the only place in FreeType where this function was used.
|
||||||
|
|
||||||
|
* include/config/ftstdlib.h (ft_labs): Remove.
|
||||||
|
|
||||||
|
* src/cache/ftcimage.c (ftc_inode_weight): Replace `ft_labs' with
|
||||||
|
`FT_ABS'.
|
||||||
|
|
||||||
2015-02-23 Werner Lemberg <wl@gnu.org>
|
2015-02-23 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[cache] Replace `FT_PtrDist' with `FT_Offset'.
|
[cache] Replace `FT_PtrDist' with `FT_Offset'.
|
||||||
|
|
|
@ -141,8 +141,7 @@
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#define ft_atol atol
|
#define ft_atol atol
|
||||||
#define ft_labs labs
|
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
|
|
||||||
|
|
||||||
bitg = (FT_BitmapGlyph)glyph;
|
bitg = (FT_BitmapGlyph)glyph;
|
||||||
size = bitg->bitmap.rows * ft_labs( bitg->bitmap.pitch ) +
|
size = bitg->bitmap.rows * (FT_Offset)FT_ABS( bitg->bitmap.pitch ) +
|
||||||
sizeof ( *bitg );
|
sizeof ( *bitg );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue