summaryrefslogtreecommitdiff
path: root/sys/src/libdraw
diff options
context:
space:
mode:
authorftrvxmtrx <ftrvxmtrx@gmail.com>2015-06-09 10:33:30 +0200
committerftrvxmtrx <ftrvxmtrx@gmail.com>2015-06-09 10:33:30 +0200
commita314302e64ffbff295c832edc5cb1e3ef110614a (patch)
tree2e5bca7e026841ef4b53aaaeac0e7021b5741839 /sys/src/libdraw
parent94333d83ab5df8bd51b148a69a33aa6b335c6fc6 (diff)
libdraw: sync allocimage/allocwindow prototypes with man pages
Diffstat (limited to 'sys/src/libdraw')
-rw-r--r--sys/src/libdraw/alloc.c8
-rw-r--r--sys/src/libdraw/window.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/src/libdraw/alloc.c b/sys/src/libdraw/alloc.c
index 7cb6e2d5c..90289a6aa 100644
--- a/sys/src/libdraw/alloc.c
+++ b/sys/src/libdraw/alloc.c
@@ -3,18 +3,18 @@
#include <draw.h>
Image*
-allocimage(Display *d, Rectangle r, ulong chan, int repl, ulong val)
+allocimage(Display *d, Rectangle r, ulong chan, int repl, ulong col)
{
Image *i;
- i = _allocimage(nil, d, r, chan, repl, val, 0, 0);
+ i = _allocimage(nil, d, r, chan, repl, col, 0, 0);
if(i != nil)
setmalloctag(i, getcallerpc(&d));
return i;
}
Image*
-_allocimage(Image *ai, Display *d, Rectangle r, ulong chan, int repl, ulong val, int screenid, int refresh)
+_allocimage(Image *ai, Display *d, Rectangle r, ulong chan, int repl, ulong col, int screenid, int refresh)
{
uchar *a;
char *err;
@@ -73,7 +73,7 @@ _allocimage(Image *ai, Display *d, Rectangle r, ulong chan, int repl, ulong val,
BPLONG(a+35, clipr.min.y);
BPLONG(a+39, clipr.max.x);
BPLONG(a+43, clipr.max.y);
- BPLONG(a+47, val);
+ BPLONG(a+47, col);
if(flushimage(d, 0) < 0)
goto Error;
diff --git a/sys/src/libdraw/window.c b/sys/src/libdraw/window.c
index 3f006405c..b4dc7fad9 100644
--- a/sys/src/libdraw/window.c
+++ b/sys/src/libdraw/window.c
@@ -107,18 +107,18 @@ Error:
}
Image*
-allocwindow(Screen *s, Rectangle r, int ref, ulong val)
+allocwindow(Screen *s, Rectangle r, int ref, ulong col)
{
- return _allocwindow(nil, s, r, ref, val);
+ return _allocwindow(nil, s, r, ref, col);
}
Image*
-_allocwindow(Image *i, Screen *s, Rectangle r, int ref, ulong val)
+_allocwindow(Image *i, Screen *s, Rectangle r, int ref, ulong col)
{
Display *d;
d = s->display;
- i = _allocimage(i, d, r, d->screenimage->chan, 0, val, s->id, ref);
+ i = _allocimage(i, d, r, d->screenimage->chan, 0, col, s->id, ref);
if(i == nil)
return nil;
i->screen = s;