]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libdraw/fmt.c
libdraw, screenrc: bind devdraw and devmouse in screenrc instead of handling it in...
[plan9front.git] / sys / src / libdraw / fmt.c
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