diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-04-03 03:24:47 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-04-03 03:24:47 +0000 |
commit | ec892645ac06d9789af633d19b08b3cb21430feb (patch) | |
tree | 4c981f791263ab027fe239edcd8287622042803f /x11/xglobe/patches/patch-ab | |
parent | 621d0db2d299b236ef865089bfa9550ebf209a55 (diff) | |
download | pkgsrc-ec892645ac06d9789af633d19b08b3cb21430feb.tar.gz |
Update to version 0.5. Changes:
- added -outfile command line switch
- added -rot command line switch by Andrew Sumner:
- implemented cloud map rendering (-cloudmapfile and -cloudfilter switches)
(see README.maps for details)
For NetBSD 1.4.x, (s)rand() was replaced by (s)random() to get a better
image of stars. Thanks a lot to Marcello Balduccini <marcy@cs.utep.edu>
for the hint!
Diffstat (limited to 'x11/xglobe/patches/patch-ab')
-rw-r--r-- | x11/xglobe/patches/patch-ab | 17 |
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); |