URI:
       treplclipr.c - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       treplclipr.c (363B)
       ---
            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 }