henesyinit from p9fce6d0435 years agoHistory
24 lines · 379 B · C
RawDownload
#include <u.h>#include <libc.h>#include <libg.h>#include <layer.h> intclipr(Bitmap *d, Rectangle r){	uchar *buf; 	if(rectclip(&r, d->r) == 0)		return 0;	if(d->cache == 0){		buf = bneed(19);		buf[0] = 'q';		BPSHORT(buf+1, d->id);		BPLONG(buf+3, r.min.x);		BPLONG(buf+7, r.min.y);		BPLONG(buf+11, r.max.x);		BPLONG(buf+15, r.max.y);	}	d->clipr = r;	return 1;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t