aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/cairo/files
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2004-11-10 12:21:03 +0800
committerahze <ahze@FreeBSD.org>2004-11-10 12:21:03 +0800
commit52ce92e51a2b2f1940029731df267d6163fa639b (patch)
tree6f2c1f0f7078264ed87ed23da28be1dd7f99cb74 /graphics/cairo/files
parent7698ea92087d8f2ca4cd1235b672f75825285e2f (diff)
downloadfreebsd-ports-gnome-52ce92e51a2b2f1940029731df267d6163fa639b.tar.gz
freebsd-ports-gnome-52ce92e51a2b2f1940029731df267d6163fa639b.tar.zst
freebsd-ports-gnome-52ce92e51a2b2f1940029731df267d6163fa639b.zip
Update to 0.2.0 to fix fetch
Pointed out by: pointyhat via kris Approved by: marcus (co mentor)
Diffstat (limited to 'graphics/cairo/files')
-rw-r--r--graphics/cairo/files/patch-src_cairo_font.c27
-rw-r--r--graphics/cairo/files/patch-src_cairo_ft_font.c23
2 files changed, 50 insertions, 0 deletions
diff --git a/graphics/cairo/files/patch-src_cairo_font.c b/graphics/cairo/files/patch-src_cairo_font.c
new file mode 100644
index 000000000000..34a0c8ad778c
--- /dev/null
+++ b/graphics/cairo/files/patch-src_cairo_font.c
@@ -0,0 +1,27 @@
+--- src/cairo_font.c.orig Tue Nov 9 21:51:24 2004
++++ src/cairo_font.c Tue Nov 9 21:53:06 2004
+@@ -54,9 +54,9 @@
+ static unsigned long
+ _font_cache_hash (void *cache, void *key)
+ {
++ unsigned long hash;
+ cairo_font_cache_key_t *in;
+ in = (cairo_font_cache_key_t *) key;
+- unsigned long hash;
+
+ /* 1607 and 1451 are just a couple random primes. */
+ hash = _cairo_hash_string (in->family);
+@@ -86,11 +86,12 @@
+ void *key,
+ void **return_value)
+ {
++ const struct cairo_font_backend *backend;
+ cairo_font_cache_key_t *k;
+ cairo_font_cache_entry_t *entry;
+ k = (cairo_font_cache_key_t *) key;
+
+- const struct cairo_font_backend *backend = CAIRO_FONT_BACKEND_DEFAULT;
++ backend = CAIRO_FONT_BACKEND_DEFAULT;
+
+ /* XXX: The current freetype backend may return NULL, (for example
+ * if no fonts are installed), but I would like to guarantee that
diff --git a/graphics/cairo/files/patch-src_cairo_ft_font.c b/graphics/cairo/files/patch-src_cairo_ft_font.c
new file mode 100644
index 000000000000..426494b47f9e
--- /dev/null
+++ b/graphics/cairo/files/patch-src_cairo_ft_font.c
@@ -0,0 +1,23 @@
+--- src/cairo_ft_font.c.orig Tue Nov 9 21:53:24 2004
++++ src/cairo_ft_font.c Tue Nov 9 21:58:25 2004
+@@ -481,6 +481,9 @@
+ cairo_glyph_t **glyphs,
+ int *nglyphs)
+ {
++ double x, y;
++ FT_ULong *ucs4 = NULL;
++ size_t i;
+ cairo_ft_font_t *font = abstract_font;
+ FT_Face face = font->val->face;
+ cairo_glyph_cache_key_t key;
+@@ -490,9 +493,7 @@
+ key.unscaled = &font->base;
+ key.scale = *sc;
+
+- double x = 0., y = 0.;
+- size_t i;
+- FT_ULong *ucs4 = NULL;
++ x = 0., y = 0.;
+
+ _utf8_to_ucs4 (utf8, &ucs4, nglyphs);
+