summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 055a867..3110ea5 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -4436,6 +4436,26 @@ int sdl_open(void)
return 1;
}
+int draw_debug_info(pixel* vid)
+{
+ if(debug_flags & DEBUG_PARTS)
+ {
+ int i = 0, x = 0, y = 0;
+ for(i = 0; i < NPART; i++){
+ if(parts[i].type){
+ drawpixel(vid, x, y, 255, 255, 255, 120);
+ } else {
+ drawpixel(vid, x, y, 0, 0, 0, 120);
+ }
+ x++;
+ if(x>=XRES){
+ y++;
+ x = 0;
+ }
+ }
+ }
+}
+
#ifdef OpenGL
void Enable2D ()
{