rsc | ed7c8e8 | 2003-09-30 17:47:42 +0000 | [diff] [blame] | 1 | #include <u.h> |
2 | #include <libc.h> | ||||
3 | #include <draw.h> | ||||
4 | |||||
5 | void | ||||
6 | replclipr(Image *i, int repl, Rectangle clipr) | ||||
7 | { | ||||
8 | uchar *b; | ||||
9 | |||||
10 | b = bufimage(i->display, 22); | ||||
11 | b[0] = 'c'; | ||||
12 | BPLONG(b+1, i->id); | ||||
13 | repl = repl!=0; | ||||
14 | b[5] = repl; | ||||
15 | BPLONG(b+6, clipr.min.x); | ||||
16 | BPLONG(b+10, clipr.min.y); | ||||
17 | BPLONG(b+14, clipr.max.x); | ||||
18 | BPLONG(b+18, clipr.max.y); | ||||
19 | i->repl = repl; | ||||
20 | i->clipr = clipr; | ||||
21 | } |