summaryrefslogtreecommitdiff
path: root/include/ds81_debug.h
diff options
context:
space:
mode:
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 */