diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-03-02 17:49:29 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-03-02 17:49:29 +0000 |
commit | b3166e3f9902eddbcb05d0d870e1186156be05a5 (patch) | |
tree | 299fab56956a9a5907616c1bb2a6c35950b99496 /graphics/aalib/files/patch-ah | |
parent | - update to 3.16.1 (diff) |
Update to 1.4.r5
PR: 35480
Submitted by: Norikatsu Shigemura <nork@ninth-nine.com>
Notes
Notes:
svn path=/head/; revision=55405
Diffstat (limited to 'graphics/aalib/files/patch-ah')
-rw-r--r-- | graphics/aalib/files/patch-ah | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/graphics/aalib/files/patch-ah b/graphics/aalib/files/patch-ah index f3de83cd4656..e29437b8a358 100644 --- a/graphics/aalib/files/patch-ah +++ b/graphics/aalib/files/patch-ah @@ -1,27 +1,27 @@ ---- aarender.c.orig Mon Oct 13 10:21:01 1997 -+++ aarender.c Fri Mar 2 16:30:17 2001 -@@ -26,11 +26,11 @@ +--- src/aarender.c.orig Thu Apr 26 23:37:31 2001 ++++ src/aarender.c Sat Mar 2 23:02:04 2002 +@@ -27,11 +27,11 @@ return (p); } - #define MYLONG_MAX 0xffffffff /*this is enought for me. */ + #define MYLONG_MAX 0xffffffffU /*this is enought for me. */ -#define myrand() (state = ((state * 1103515245) + 12345) & MYLONG_MAX) +#define myrand() (random() & MYLONG_MAX) - void aa_renderpalette(aa_context * c, aa_palette palette, aa_renderparams * p, int x1, int y1, int x2, int y2) + void aa_renderpalette(aa_context * c, __AA_CONST aa_palette palette, __AA_CONST aa_renderparams * p, int x1, int y1, int x2, int y2) { - static int state; + static int rand_init = 0; int x, y; int val; int wi = c->imgwidth; -@@ -43,6 +43,11 @@ - int mval; - int gamma = p->gamma != 1.0; +@@ -47,6 +47,11 @@ + int randomval = p->randomval; + int dither = p->dither; aa_palette table; + + if (!rand_init) { -+ srandomdev(); -+ rand_init = 1; ++ srandomdev(); ++ rand_init = 1; + } if (x2 < 0 || y2 < 0 || x1 > aa_scrwidth(c) || y1 > aa_scrheight(c)) return; |