ref: 11d573d7f9a3163224195f312f53322e9076a8fe
dir: /sys/src/libdraw/debug.c/
#include <u.h>
#include <libc.h>
#include <draw.h>
void
drawsetdebug(int v)
{
uchar *a;
a = bufimage(display, 1+1);
if(a == nil){
fprint(2, "drawsetdebug: %r\n");
return;
}
a[0] = 'D';
a[1] = v;
}