From 0f41eb539e0c30e9b06171a521c0f28ba5410871 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Wed, 15 Sep 2004 16:33:21 +0000 Subject: Pull XORG-6_8_0 to CYGWIN branch --- include/X11/Xft/Xft.h | 1 - include/X11/Xft/XftCompat.h | 1 - src/xftcolor.c | 1 - src/xftcore.c | 1 - src/xftdbg.c | 1 - src/xftdpy.c | 1 - src/xftfreetype.c | 3 ++- src/xftglyphs.c | 1 - src/xftinit.c | 1 - src/xftint.h | 11 ++++++++++- src/xftlist.c | 1 - src/xftname.c | 1 - src/xftrender.c | 1 - src/xftstr.c | 1 - src/xftswap.c | 1 - src/xftxlfd.c | 1 - 16 files changed, 12 insertions(+), 16 deletions(-) diff --git a/include/X11/Xft/Xft.h b/include/X11/Xft/Xft.h index 1c67265..d6199b1 100644 --- a/include/X11/Xft/Xft.h +++ b/include/X11/Xft/Xft.h @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/include/X11/Xft/XftCompat.h b/include/X11/Xft/XftCompat.h index 30e08e7..34a6d08 100644 --- a/include/X11/Xft/XftCompat.h +++ b/include/X11/Xft/XftCompat.h @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2001 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftcolor.c b/src/xftcolor.c index 4d17045..7377c78 100644 --- a/src/xftcolor.c +++ b/src/xftcolor.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftcore.c b/src/xftcore.c index 4c8470a..f43e467 100644 --- a/src/xftcore.c +++ b/src/xftcore.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftdbg.c b/src/xftdbg.c index 0c6e8c9..c30c6d3 100644 --- a/src/xftdbg.c +++ b/src/xftdbg.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftdpy.c b/src/xftdpy.c index 86f9c2a..1b38424 100644 --- a/src/xftdpy.c +++ b/src/xftdpy.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftfreetype.c b/src/xftfreetype.c index 1a52c21..676b7e6 100644 --- a/src/xftfreetype.c +++ b/src/xftfreetype.c @@ -289,7 +289,8 @@ _XftReleaseFile (XftFtFile *f) if (f->face) FT_Done_Face (f->face); } - XftMemFree (XFT_MEM_FILE, sizeof (XftFtFile) + strlen (f->file) + 1); + XftMemFree (XFT_MEM_FILE, + sizeof (XftFtFile) + f->file ? strlen (f->file) + 1 : 0); free (f); } diff --git a/src/xftglyphs.c b/src/xftglyphs.c index 51fc816..a9d1ecc 100644 --- a/src/xftglyphs.c +++ b/src/xftglyphs.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftinit.c b/src/xftinit.c index 7cb4bb9..a4ad682 100644 --- a/src/xftinit.c +++ b/src/xftinit.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftint.h b/src/xftint.h index 9e69900..465bb2e 100644 --- a/src/xftint.h +++ b/src/xftint.h @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * @@ -44,6 +43,16 @@ #include #include +#ifndef HAVE_CONFIG_H +# if (FREETYPE_MAJOR > 2 || \ + (FREETYPE_MAJOR == 2 && (FREETYPE_MINOR > 1 || \ + (FREETYPE_MINOR == 1 && FREETYPE_PATCH >= 5)))) +# define HAVE_FT_BITMAP_SIZE_Y_PPEM 1 +# else +# define HAVE_FT_BITMAP_SIZE_Y_PPEM 0 +# endif +#endif + typedef struct _XftMatcher { char *object; double (*compare) (char *object, FcValue value1, FcValue value2); diff --git a/src/xftlist.c b/src/xftlist.c index 3f7b390..edf2e52 100644 --- a/src/xftlist.c +++ b/src/xftlist.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftname.c b/src/xftname.c index a9b9ff4..cac2817 100644 --- a/src/xftname.c +++ b/src/xftname.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftrender.c b/src/xftrender.c index f027eb4..1cf2882 100644 --- a/src/xftrender.c +++ b/src/xftrender.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftstr.c b/src/xftstr.c index f6cbd35..85aaf9a 100644 --- a/src/xftstr.c +++ b/src/xftstr.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftswap.c b/src/xftswap.c index f632a87..e60a646 100644 --- a/src/xftswap.c +++ b/src/xftswap.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. * diff --git a/src/xftxlfd.c b/src/xftxlfd.c index 26a84c9..55d9488 100644 --- a/src/xftxlfd.c +++ b/src/xftxlfd.c @@ -1,5 +1,4 @@ /* - * $Id$ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * -- cgit v1.2.1