diff options
author | pat <pat@FreeBSD.org> | 2002-03-03 01:49:29 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-03-03 01:49:29 +0800 |
commit | 34ba8c4add0c01660801dd5d02c5bd25e365612b (patch) | |
tree | 687fe9cfa921b0ebb6dc9f085751ad3148b07c73 /graphics/aalib/files | |
parent | 66c7e1a37ad5dc6a67a4a775d5de521db258a06f (diff) | |
download | freebsd-ports-gnome-34ba8c4add0c01660801dd5d02c5bd25e365612b.tar.gz freebsd-ports-gnome-34ba8c4add0c01660801dd5d02c5bd25e365612b.tar.zst freebsd-ports-gnome-34ba8c4add0c01660801dd5d02c5bd25e365612b.zip |
Update to 1.4.r5
PR: 35480
Submitted by: Norikatsu Shigemura <nork@ninth-nine.com>
Diffstat (limited to 'graphics/aalib/files')
-rw-r--r-- | graphics/aalib/files/patch-af | 11 | ||||
-rw-r--r-- | graphics/aalib/files/patch-ag | 72 | ||||
-rw-r--r-- | graphics/aalib/files/patch-ah | 20 | ||||
-rw-r--r-- | graphics/aalib/files/patch-ai | 6 |
4 files changed, 48 insertions, 61 deletions
diff --git a/graphics/aalib/files/patch-af b/graphics/aalib/files/patch-af deleted file mode 100644 index 4451d84cf42d..000000000000 --- a/graphics/aalib/files/patch-af +++ /dev/null @@ -1,11 +0,0 @@ ---- aalib.h.orig Tue Nov 11 20:06:44 1997 -+++ aalib.h Thu Feb 1 15:21:47 2001 -@@ -183,7 +183,7 @@ - typedef struct aa_linkedlist aa_linkedlist; - typedef struct aa_linkedlist aa_reclist; - typedef struct aa_renderparams aa_renderparams; --typedef struct aa_hardwareparams aa_hardware_params; -+typedef struct aa_hardware_params aa_hardware_params; - typedef struct aa_driver aa_driver; - typedef struct aa_font aa_font; - typedef struct aa_format aa_format; diff --git a/graphics/aalib/files/patch-ag b/graphics/aalib/files/patch-ag index 27a3a3ea0806..f2ed1336f6b0 100644 --- a/graphics/aalib/files/patch-ag +++ b/graphics/aalib/files/patch-ag @@ -1,39 +1,37 @@ ---- aafire.c.orig Fri Mar 2 16:30:27 2001 -+++ aafire.c Fri Mar 2 16:31:17 2001 -@@ -51,6 +51,7 @@ - static void initialize() +--- src/aafire.c.orig Fri Apr 27 00:30:03 2001 ++++ src/aafire.c Sat Mar 2 22:51:46 2002 +@@ -48,6 +48,7 @@ + initialize (void) { - int i; -+ srandomdev(); - context = aa_autoinit(&aa_defparams); - if (context == NULL) { - printf("Failed to initialize aalib\n"); -@@ -107,21 +108,21 @@ - height++; - loop--; - if (loop < 0) -- loop = rand() % 3, sloop++;; -+ loop = random() % 3, sloop++;; - i1 = 1; - i2 = 4 * XSIZ + 1; - for (p = (char *) bitmap + XSIZ * (YSIZ + 0); p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1)); p++, i1 += 4, i2 -= 4) { -- last1 = rand() % min(i1, min(i2, height)); -- i = rand() % 6; -+ last1 = random() % min(i1, min(i2, height)); -+ i = random() % 6; - for (; p < (unsigned char *) bitmap + XSIZ * (YSIZ + 1) && i != 0; p++, i--, i1 += 4, i2 -= 4) -- *p = last1, last1 += rand() % 6 - 2, -- *(p + XSIZ) = last1, last1 += rand() % 6 - 2; -- *(p + 2 * XSIZ) = last1, last1 += rand() % 6 - 2; -+ *p = last1, last1 += random() % 6 - 2, -+ *(p + XSIZ) = last1, last1 += random() % 6 - 2; -+ *(p + 2 * XSIZ) = last1, last1 += random() % 6 - 2; + int i; ++ srandomdev(); + context = aa_autoinit (&aa_defparams); + if (context == NULL) + { +@@ -114,20 +115,20 @@ + height++; + loop--; + if (loop < 0) +- loop = rand () % 3, sloop++;; ++ loop = random () % 3, sloop++;; + i1 = 1; + i2 = 4 * XSIZ + 1; + for (p = (char *) bitmap + XSIZ * (YSIZ + 0); + p < ((unsigned char *) bitmap + XSIZ * (YSIZ + 1)); + p++, i1 += 4, i2 -= 4) + { +- last1 = rand () % min (i1, min (i2, height)); +- i = rand () % 6; ++ last1 = random () % min (i1, min (i2, height)); ++ i = random () % 6; + for (; p < (unsigned char *) bitmap + XSIZ * (YSIZ + 1) && i != 0; + p++, i--, i1 += 4, i2 -= 4) +- *p = last1, last1 += rand () % 6 - 2, *(p + XSIZ) = last1, last1 += +- rand () % 6 - 2; +- *(p + 2 * XSIZ) = last1, last1 += rand () % 6 - 2; ++ *p = last1, last1 += random () % 6 - 2, *(p + XSIZ) = last1, last1 += ++ random () % 6 - 2; ++ *(p + 2 * XSIZ) = last1, last1 += random () % 6 - 2; } - /* - for(p=bitmap+XSIZ*YSIZ;p<bitmap+(YSIZ+2)*XSIZ;p++) - { -- *p=rand(); -+ *p=random(); - } */ - i = 0; - firemain(); + i = 0; + firemain (); 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; diff --git a/graphics/aalib/files/patch-ai b/graphics/aalib/files/patch-ai index f01765cc3b58..811a580214a0 100644 --- a/graphics/aalib/files/patch-ai +++ b/graphics/aalib/files/patch-ai @@ -1,6 +1,6 @@ ---- aaprintf.c.orig Fri Mar 2 16:34:22 2001 -+++ aaprintf.c Fri Mar 2 16:35:20 2001 -@@ -6,7 +6,7 @@ +--- src/aaprintf.c.orig Thu Apr 26 23:37:31 2001 ++++ src/aaprintf.c Sat Mar 2 22:54:56 2002 +@@ -7,7 +7,7 @@ char buf[1025]; int i; va_start(args,fmt); |