aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-09-08 11:59:57 +0200
committerThomas White <taw@bitwiz.org.uk>2013-09-08 11:59:57 +0200
commit9595e4b05a7a8255a0e58e060ad9872a6799ffbe (patch)
tree7e9f840b013687618a3a27387fcc65466db0ef36 /src
parenta43c7bf130a5ee85982aa447ce9bbe5e28672fb1 (diff)
Escape SC in heirarchy debug display
Diffstat (limited to 'src')
-rw-r--r--src/frame.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c
index 7d0e349..bf0672a 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -276,12 +276,14 @@ void show_hierarchy(struct frame *fr, const char *t)
{
int i;
char tn[1024];
+ char *sc;
strcpy(tn, t);
strcat(tn, " ");
- printf("%s%p %s %p (%i x %i) / (%.2f x %.2f)\n", t, fr, fr->sc, fr->contents,
- fr->pix_w, fr->pix_h, fr->w, fr->h);
+ sc = escape_text(fr->sc);
+ printf("%s%p %s (%.2f x %.2f)\n", t, fr, sc, fr->w, fr->h);
+ free(sc);
for ( i=0; i<fr->num_children; i++ ) {
show_hierarchy(fr->children[i], tn);