aboutsummaryrefslogtreecommitdiff
path: root/src/libdraw/debug.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-09-30 17:47:42 +0000
committerrsc <devnull@localhost>2003-09-30 17:47:42 +0000
commited7c8e8d02c02bdbff1e88a6d8d1419f39af48ad (patch)
treeebcd32d20b0df2584bce713fefa87620ecd1cce7 /src/libdraw/debug.c
parentb2cfc4e2e71d0f0a5113ddfbd93c8285cc4d74e4 (diff)
downloadplan9port-ed7c8e8d02c02bdbff1e88a6d8d1419f39af48ad.tar.gz
plan9port-ed7c8e8d02c02bdbff1e88a6d8d1419f39af48ad.tar.bz2
plan9port-ed7c8e8d02c02bdbff1e88a6d8d1419f39af48ad.zip
Initial import.
Diffstat (limited to 'src/libdraw/debug.c')
-rw-r--r--src/libdraw/debug.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libdraw/debug.c b/src/libdraw/debug.c
new file mode 100644
index 00000000..3a6788a8
--- /dev/null
+++ b/src/libdraw/debug.c
@@ -0,0 +1,16 @@
+#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;
+}