From 603f3fac82ccb77775d53fd77ae7c32167116ad7 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 3 Nov 2008 17:07:32 +0000 Subject: Initial snapshot code (in progress) --- include/ds81_debug.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'include/ds81_debug.h') 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 */ -- cgit v1.2.3