Subversion Repositories planix.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <draw.h>
4
 
5
int
6
Rfmt(Fmt *f)
7
{
8
	Rectangle r;
9
 
10
	r = va_arg(f->args, Rectangle);
11
	return fmtprint(f, "%P %P", r.min, r.max);
12
}
13
 
14
int
15
Pfmt(Fmt *f)
16
{
17
	Point p;
18
 
19
	p = va_arg(f->args, Point);
20
	return fmtprint(f, "[%d %d]", p.x, p.y);
21
}
22