summaryrefslogtreecommitdiff
path: root/x11/xglobe/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xglobe/patches/patch-ab')
-rw-r--r--x11/xglobe/patches/patch-ab17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/xglobe/patches/patch-ab b/x11/xglobe/patches/patch-ab
new file mode 100644
index 00000000000..b427df38ba7
--- /dev/null
+++ b/x11/xglobe/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2000/04/03 03:24:48 hubertf Exp $
+
+--- renderer.cpp.orig Mon Apr 3 05:07:37 2000
++++ renderer.cpp Mon Apr 3 05:08:40 2000
+@@ -1562,9 +1562,9 @@
+
+ for(int i=0; i<numstars; i++)
+ {
+- x = rand() % renderedImage->width();
+- y = rand() % renderedImage->height();
+- brightness = 150+ (rand() % 106);
++ x = random() % renderedImage->width();
++ y = random() % renderedImage->height();
++ brightness = 150+ (random() % 106);
+ p = (unsigned int *)renderedImage->scanLine(y);
+ p += x;
+ *p = qRgb(brightness, brightness, brightness);