aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2024-04-27 20:44:01 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2024-04-27 20:44:01 -0400
commit1168b1b5b0774b09a7484b150d2d49c682e46e91 (patch)
tree5c4d28bf52c0d9643c75db2922ae176c0d0884e7
parent4e079f635747433801a02f3bca208e6bd8819381 (diff)
downloadfreetype-upstream-master.tar.gz
* src/cache/ftcimage.c (ftc_inode_weight): Formatting.upstream-master
-rw-r--r--src/cache/ftcimage.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cache/ftcimage.c b/src/cache/ftcimage.c
index c142dcc8d..146306405 100644
--- a/src/cache/ftcimage.c
+++ b/src/cache/ftcimage.c
@@ -115,10 +115,9 @@
{
case FT_GLYPH_FORMAT_BITMAP:
{
- FT_BitmapGlyph bitg;
+ FT_BitmapGlyph bitg = (FT_BitmapGlyph)glyph;
- bitg = (FT_BitmapGlyph)glyph;
size = bitg->bitmap.rows * (FT_Offset)FT_ABS( bitg->bitmap.pitch ) +
sizeof ( *bitg );
}
@@ -126,10 +125,9 @@
case FT_GLYPH_FORMAT_OUTLINE:
{
- FT_OutlineGlyph outg;
+ FT_OutlineGlyph outg = (FT_OutlineGlyph)glyph;
- outg = (FT_OutlineGlyph)glyph;
size = (FT_Offset)outg->outline.n_points *
( sizeof ( FT_Vector ) + sizeof ( FT_Byte ) ) +
(FT_Offset)outg->outline.n_contours * sizeof ( FT_Short ) +