diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-04-30 11:25:23 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-04-30 11:25:23 +0800 |
commit | c842c7124fcd6840b1083225e4a2924033f58afb (patch) | |
tree | dc98589a26e4f0c75c8e1bcec5486c80243f24a3 /graphics/cairo/files | |
parent | 2c04e2178d3ccce17af9d227a165f4025e1baf27 (diff) | |
download | marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.gz marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.bz2 marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.lz marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.xz marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.zst marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.zip |
- Move cairo, glitz, gtk-engines2 out of ports-experimental
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6156 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/cairo/files')
-rw-r--r-- | graphics/cairo/files/patch-src_cairo-ft-font.c | 28 | ||||
-rw-r--r-- | graphics/cairo/files/patch-src_cairo-xlib-surface.c | 11 |
2 files changed, 39 insertions, 0 deletions
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 000000000..8cd60665f --- /dev/null +++ b/graphics/cairo/files/patch-src_cairo-ft-font.c @@ -0,0 +1,28 @@ +--- src/cairo-ft-font.c.orig Tue Aug 16 14:46:46 2005 ++++ src/cairo-ft-font.c Tue Aug 16 14:46:59 2005 +@@ -44,6 +44,11 @@ + #include <fontconfig/fontconfig.h> + #include <fontconfig/fcfreetype.h> + ++#include <sys/types.h> ++#include <stdlib.h> ++#include <time.h> ++#include <unistd.h> ++ + #include <ft2build.h> + #include FT_FREETYPE_H + #include FT_OUTLINE_H +@@ -257,7 +262,12 @@ _cairo_ft_unscaled_font_init_key (cairo_ + key->id = id; + + /* 1607 is just an arbitrary prime. */ +- hash = _cairo_hash_string (filename); ++ if (filename != NULL) { ++ hash = _cairo_hash_string (filename); ++ } else { ++ srandom(time(NULL) * getpid()); ++ hash = random(); ++ } + hash += ((unsigned long) id) * 1607; + + key->base.hash_entry.hash = hash; diff --git a/graphics/cairo/files/patch-src_cairo-xlib-surface.c b/graphics/cairo/files/patch-src_cairo-xlib-surface.c new file mode 100644 index 000000000..396ac3e29 --- /dev/null +++ b/graphics/cairo/files/patch-src_cairo-xlib-surface.c @@ -0,0 +1,11 @@ +--- src/cairo-xlib-surface.c.orig Mon Oct 3 22:44:43 2005 ++++ src/cairo-xlib-surface.c Wed Nov 16 18:59:40 2005 +@@ -1758,7 +1758,7 @@ + + surface->buggy_repeat = FALSE; + if (strstr (ServerVendor (dpy), "X.Org") != NULL) { +- if (VendorRelease (dpy) <= 60802000) ++ if (VendorRelease (dpy) < 60900000) + surface->buggy_repeat = TRUE; + } else if (strstr (ServerVendor (dpy), "XFree86") != NULL) { + if (VendorRelease (dpy) <= 40500000) |