[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] GSoC-2020-anuj da27fd2: [ftsdf] Fixed a compiler warni
From: |
Anuj Verma |
Subject: |
[freetype2-demos] GSoC-2020-anuj da27fd2: [ftsdf] Fixed a compiler warning. |
Date: |
Sat, 22 Aug 2020 08:14:28 -0400 (EDT) |
branch: GSoC-2020-anuj
commit da27fd25c3f30f8f68cde56e0f16cbf67f50009a
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>
[ftsdf] Fixed a compiler warning.
* src/ftsdf.c (FT_CALL): The macros expands to multiple lines, so always use
parenthesis while using the macro with any control flow statement.
---
src/ftsdf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/ftsdf.c b/src/ftsdf.c
index 9f1f582..9a32b90 100644
--- a/src/ftsdf.c
+++ b/src/ftsdf.c
@@ -96,7 +96,9 @@
/* generate SDF from bitmap) we must render the glyph first using */
/* the smooth or the monochrome FreeType rasterizer. */
if ( status.use_bitmap )
+ {
FT_CALL( FT_Render_Glyph( status.face->glyph, FT_RENDER_MODE_NORMAL ) );
+ }
FT_CALL( FT_Render_Glyph( status.face->glyph, FT_RENDER_MODE_SDF ) );
/* Compute and print the generation time. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] GSoC-2020-anuj da27fd2: [ftsdf] Fixed a compiler warning.,
Anuj Verma <=