rscaf25716421 years agoHistory
23 lines · 314 B · C
RawDownload
#include <u.h>#include <libc.h>#include <draw.h> intdrawreplxy(int min, int max, int x){	int sx; 	sx = (x-min)%(max-min);	if(sx < 0)		sx += max-min;	return sx+min;} Pointdrawrepl(Rectangle r, Point p){	p.x = drawreplxy(r.min.x, r.max.x, p.x);	p.y = drawreplxy(r.min.y, r.max.y, p.y);	return p;} 

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