summaryrefslogtreecommitdiff
path: root/freetype/src/smooth/ftgrays.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-05-04 10:45:16 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-05-05 16:06:03 +0100
commitdb9a7ae594cce27232b27b802e97cfb6273fd2f0 (patch)
treeb629ce759821c7aa9fa84f9e0634448aa29aeb8b /freetype/src/smooth/ftgrays.c
parentdaff44df763441a772719054746c685c70aa9c1a (diff)
downloadghostpdl-db9a7ae594cce27232b27b802e97cfb6273fd2f0.tar.gz
Update freetype to 2.12.1
Diffstat (limited to 'freetype/src/smooth/ftgrays.c')
-rw-r--r--freetype/src/smooth/ftgrays.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/freetype/src/smooth/ftgrays.c b/freetype/src/smooth/ftgrays.c
index d982c2820..622035aa7 100644
--- a/freetype/src/smooth/ftgrays.c
+++ b/freetype/src/smooth/ftgrays.c
@@ -4,7 +4,7 @@
*
* A new `perfect' anti-aliasing renderer (body).
*
- * Copyright (C) 2000-2021 by
+ * Copyright (C) 2000-2022 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -333,7 +333,9 @@ typedef ptrdiff_t FT_PtrDist;
#define PIXEL_BITS 8
#define ONE_PIXEL ( 1 << PIXEL_BITS )
+#undef TRUNC
#define TRUNC( x ) (TCoord)( (x) >> PIXEL_BITS )
+#undef FRACT
#define FRACT( x ) (TCoord)( (x) & ( ONE_PIXEL - 1 ) )
#if PIXEL_BITS >= 6