xref: /plan9/sys/src/libdraw/debug.c (revision ff8c3af2f44d95267f67219afa20ba82ff6cf7e4)
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 		fprint(2, "drawsetdebug: %r\n");
12 		return;
13 	}
14 	a[0] = 'D';
15 	a[1] = v;
16 }
17