blob: ffd24b47baafb77e5e6e319294faba03667845f6 [file] [log] [blame]
rsced7c8e82003-09-30 17:47:42 +00001#include <u.h>
2#include <libc.h>
3#include <draw.h>
4
5void
6replclipr(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}