shithub: riscv

ref: 2b4a488762eb85495d0001cfa689f12b2c746a7a
dir: /sys/src/libdraw/debug.c/

View raw version
#include <u.h>
#include <libc.h>
#include <draw.h>

void
drawsetdebug(int v)
{
	uchar *a;
	a = bufimage(display, 1+1);
	if(a == 0){
		fprint(2, "drawsetdebug: %r\n");
		return;
	}
	a[0] = 'D';
	a[1] = v;
}