summaryrefslogtreecommitdiff
path: root/include/ds81_debug.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2008-11-03 17:07:32 +0000
committerIan C <ianc@noddybox.co.uk>2008-11-03 17:07:32 +0000
commit603f3fac82ccb77775d53fd77ae7c32167116ad7 (patch)
tree912d684087250ca5cac6e597e06277f1c83f33b0 /include/ds81_debug.h
parent1aaaca17a1dc30727578e5fa3755ee6fc05b238d (diff)
Initial snapshot code (in progress)
Diffstat (limited to 'include/ds81_debug.h')
-rw-r--r--include/ds81_debug.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/ds81_debug.h b/include/ds81_debug.h
index 82e8c45..ed7a1eb 100644
--- a/include/ds81_debug.h
+++ b/include/ds81_debug.h
@@ -22,15 +22,22 @@
#ifndef DS81_DEBUG_H
#define DS81_DEBUG_H
+#include "gui.h"
#include "framebuffer.h"
#define DS81_DEBUG(fmt, args...) \
do \
{ \
- FB_FillBox(0,184,256,8,FB_RGB(10,0,0)); \
- FB_printf(0,184,FB_RGB(31,31,31),FB_RGB(10,0,0), fmt , ## args);\
- while (keysDownRepeat()!=KEY_A); \
+ char tempdebug[512]; \
+ sprintf(tempdebug, fmt, ## args); \
+ GUI_Alert(FALSE, tempdebug); \
+ } while(0)
+
+#define DS81_DEBUG_STATUS(fmt, args...) \
+ do \
+ { \
+ FB_FillBox(0,184,256,8,COL_DARKGREY); \
+ FB_printf(0,184,COL_WHITE,COL_DARKGREY, fmt , ## args); \
} while(0)
-
#endif /* DS81_DEBUG_H */