aboutsummaryrefslogtreecommitdiffstats
path: root/demos/3rdparty/doom/z_zone.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-12-24 19:58:18 +1000
committerinmarket <andrewh@inmarket.com.au>2013-12-24 19:58:18 +1000
commit0345dadebf55980d765826e32854049e498d5759 (patch)
treeaa500fb65cda08d165dc2a66062beedcbdcb30fc /demos/3rdparty/doom/z_zone.c
parentc24512f6edaee109ac10c378e7e89218c48255b7 (diff)
downloaduGFX-0345dadebf55980d765826e32854049e498d5759.tar.gz
uGFX-0345dadebf55980d765826e32854049e498d5759.tar.bz2
uGFX-0345dadebf55980d765826e32854049e498d5759.zip
Fixes to DOOM demo to remove some operating system dependancies.
Also now has working input (although not perfect) - Needs mouse or touch. Also now supports screen size doubling when the screen is significantly larger than doom's screen.
Diffstat (limited to 'demos/3rdparty/doom/z_zone.c')
-rw-r--r--demos/3rdparty/doom/z_zone.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/demos/3rdparty/doom/z_zone.c b/demos/3rdparty/doom/z_zone.c
index 43454854..801cb1a0 100644
--- a/demos/3rdparty/doom/z_zone.c
+++ b/demos/3rdparty/doom/z_zone.c
@@ -330,16 +330,16 @@ Z_DumpHeap
{
memblock_t* block;
- printf ("zone size: %i location: %p\n",
+ I_printf ("zone size: %i location: %p\n",
mainzone->size,mainzone);
- printf ("tag range: %i to %i\n",
+ I_printf ("tag range: %i to %i\n",
lowtag, hightag);
for (block = mainzone->blocklist.next ; ; block = block->next)
{
if (block->tag >= lowtag && block->tag <= hightag)
- printf ("block:%p size:%7i user:%p tag:%3i\n",
+ I_printf ("block:%p size:%7i user:%p tag:%3i\n",
block, block->size, block->user, block->tag);
if (block->next == &mainzone->blocklist)
@@ -349,17 +349,18 @@ Z_DumpHeap
}
if ( (byte *)block + block->size != (byte *)block->next)
- printf ("ERROR: block size does not touch the next block\n");
+ I_printf ("ERROR: block size does not touch the next block\n");
if ( block->next->prev != block)
- printf ("ERROR: next block doesn't have proper back link\n");
+ I_printf ("ERROR: next block doesn't have proper back link\n");
if (!block->user && !block->next->user)
- printf ("ERROR: two consecutive free blocks\n");
+ I_printf ("ERROR: two consecutive free blocks\n");
}
}
+#if 0
//
// Z_FileDumpHeap
//
@@ -390,7 +391,7 @@ void Z_FileDumpHeap (FILE* f)
fprintf (f,"ERROR: two consecutive free blocks\n");
}
}
-
+#endif
//