xref: /plan9-contrib/sys/src/libdraw/debug.c (revision 7dd7cddf99dd7472612f1413b4da293630e6b1bc)
1 #include <u.h>
2 #include <libc.h>
3 #include <draw.h>
4 
5 void
6 drawsetdebug(int v)
7 {
8 	uchar *a;
9 	a = bufimage(display, 1+1);
10 	if(a == 0){
11 		_drawprint(2, "drawsetdebug: %r\n");
12 		return;
13 	}
14 	a[0] = 'D';
15 	a[1] = v;
16 }
17