diff options
Diffstat (limited to 'include/freetype/ftcache.h')
-rw-r--r-- | include/freetype/ftcache.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/freetype/ftcache.h b/include/freetype/ftcache.h index 8fcbd1998..d28b21da1 100644 --- a/include/freetype/ftcache.h +++ b/include/freetype/ftcache.h @@ -142,19 +142,21 @@ FT_BEGIN_HEADER } FTC_FontRec; + /* */ -#define FTC_FONT_COMPARE(f1,f2) \ - ( (f1)->face_id == (f2)->face_id && \ - (f1)->pix_width == (f2)->pix_width && \ - (f1)->pix_height == (f2)->pix_height ) +#define FTC_FONT_COMPARE( f1, f2 ) \ + ( (f1)->face_id == (f2)->face_id && \ + (f1)->pix_width == (f2)->pix_width && \ + (f1)->pix_height == (f2)->pix_height ) + +#define FTC_FACE_ID_HASH( i ) ((FT_UInt32)(FT_Pointer)( i )) -#define FTC_FACE_ID_HASH(i) ((FT_UInt32)(FT_Pointer)(i)) +#define FTC_FONT_HASH( f ) \ + (FT_UInt32)( FTC_FACE_ID_HASH((f)->face_id) ^ \ + ((f)->pix_width << 8) ^ \ + ((f)->pix_height) ) -#define FTC_FONT_HASH(f) \ - (FT_UInt32)( FTC_FACE_ID_HASH((f)->face_id) ^ \ - ((f)->pix_width << 8) ^ \ - ((f)->pix_height) ) /*************************************************************************/ /* */ |