]> git.openpandora.org Git - openembedded.git/commitdiff
libxfont: add (rediffed) version of scalable patch that seems to have gotten lost...
authorKoen Kooi <koen@openembedded.org>
Tue, 1 Aug 2006 14:28:58 +0000 (14:28 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 1 Aug 2006 14:28:58 +0000 (14:28 +0000)
packages/xorg-lib/libxfont/no-scalable-crash.patch [new file with mode: 0644]
packages/xorg-lib/libxfont_X11R7.0-1.0.0.bb
packages/xorg-lib/libxfont_X11R7.1-1.2.0.bb

diff --git a/packages/xorg-lib/libxfont/no-scalable-crash.patch b/packages/xorg-lib/libxfont/no-scalable-crash.patch
new file mode 100644 (file)
index 0000000..90bded6
--- /dev/null
@@ -0,0 +1,22 @@
+--- /tmp/fontdir.c     2006-08-01 16:17:22.000000000 +0200
++++ libXfont-1.2.0/src/fontfile/fontdir.c      2006-08-01 16:20:37.248306000 +0200
+@@ -695,6 +695,11 @@
+      */
+     if (isscale)
+     {
++      /* If the fontname says it is scalable, make sure that the
++       * renderer supports OpenScalable and GetInfoScalable.
++       */
++       if (renderer->OpenScalable && renderer->GetInfoScalable)
++       {
+       if (vals.values_supplied & SIZE_SPECIFY_MASK)
+       {
+           bzero((char *)&zeroVals, sizeof(zeroVals));
+@@ -794,6 +799,7 @@
+                                            bitmap->name.name);
+             }
+       }
++       }
+     }
+     return TRUE;
+ }
index 07fbf5f9a6a1ef6198ff641830db293bbded1c9b..68148a36578b3292334949ef77ad63dc81ebdf79 100644 (file)
@@ -1,5 +1,9 @@
 include xorg-lib-common.inc
 
+PR = "r1"
+SRC_URI += "file://no-scalable-crash.patch;patch=1"
+
+
 DESCRIPTION = "X font library (used by the X server)."
 LICENSE= "BSD-X"
 PRIORITY = "optional"
index c0fb08edead07060b957cfa110d01e43ce8d9657..af511be8667d294e64e6b65e38002324d6dc4f8f 100644 (file)
@@ -1,10 +1,13 @@
 include xorg-lib-common.inc
 
+PR = "r1"
+
 DESCRIPTION = "X font library (used by the X server)."
 LICENSE= "BSD-X"
 PRIORITY = "optional"
 
 SRC_URI = "${XORG_MIRROR}/individual/lib/libXfont-1.2.0.tar.bz2"
+SRC_URI += "file://no-scalable-crash.patch;patch=1"
 
 DEPENDS += " freetype fontcacheproto zlib xproto xtrans fontsproto libfontenc"
 PROVIDES = "xfont"