mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 21:09:17 -04:00
and new features. Don't believe me? Then see for yourself at http://www.gnome.org/start/2.12/notes/en/. DO NOT USE portupgrade by itself to upgrade to GNOME 2.12. Instead, use the gnome_upgrade.sh script from http://www.marcuscom.com/downloads/gnome_upgrade212.sh. This script will circumvent some potential pitfalls users can see if they use portupgrade by itself. In keeping with tradition, GNOME 2.12 for FreeBSD comes with a special splash screen. The winner of this release's contest is Dominique Goncalves <dominique.goncalves@gmail.com>. His splash screen was inspired by http://art.gnome.org/contests/2.12-splash/83. The FreeBSD GNOME Team would lank to thank the following users for their contributions to this release: Matthew Luckie <mjl@luckie.org.nz> ade sajd on #freebsd-gnome Caelian on #freebsd-gnome mnag Yasuda Keisuke <kysd@po.harenet.ne.jp> Mark Hobden <markhobden@gmail.com> Sergey Akifyev <asa@agava.com> Andreas Kohn For more information on GNOME on FreeBSD, checkout http://www.FreeBSD.org/gnome/. The 2.12 documentation will be posted shortly.
28 lines
757 B
C
28 lines
757 B
C
--- 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;
|