From a314302e64ffbff295c832edc5cb1e3ef110614a Mon Sep 17 00:00:00 2001 From: ftrvxmtrx Date: Tue, 9 Jun 2015 10:33:30 +0200 Subject: libdraw: sync allocimage/allocwindow prototypes with man pages --- sys/src/libdraw/alloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/src/libdraw/alloc.c') 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 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; -- cgit v1.2.3