changeset 162:040e3bbce5ba

Add some extra debugging stuff.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 06 Oct 2012 07:48:29 +0300
parents 0df62d4a1d1b
children fc3c87cee960
files dmtext_bm.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmtext_bm.c	Sat Oct 06 07:48:17 2012 +0300
+++ b/dmtext_bm.c	Sat Oct 06 07:48:29 2012 +0300
@@ -120,6 +120,7 @@
     return DMERR_OK;
 }
 
+//#define FN_DEBUG
 
 int dmLoadBitmapFont(DMResource *res, DMBitmapFont **pfont)
 {
@@ -180,7 +181,8 @@
     height = dmfgetc(res);
 
 #ifdef FN_DEBUG
-    fprintf(stderr, "nglyphs=%d (0x%02x), width=%d, height=%d\n", nglyphs, nglyphs, width, height);
+    fprintf(stderr, "nglyphs=%d (0x%02x), maxglyph=%d (0x%02x) width=%d, height=%d\n",
+        nglyphs, nglyphs, maxglyph, maxglyph, width, height);
 #endif
 
     if (tsfont)