From b8dd2901f9e205f330fca47cbd3984270b5d60b1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 3 Mar 2018 16:01:50 +0100 Subject: Remove text_run offsets and lengths Keeping these up to date was becoming a gigantic headache. So instead of storing the values, routines which are interested in these lengths and offsets can calculate them themselves. --- src/debugger.c | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to 'src/debugger.c') diff --git a/src/debugger.c b/src/debugger.c index c5aaa1f..cdf6caa 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -43,9 +43,7 @@ struct run_debug enum para_type para_type; int np; - size_t len; void *scblock; /* Don't you dare try to dereference this */ - size_t para_offs; }; @@ -116,25 +114,13 @@ static void debug_text_para(Paragraph *para, cairo_t *cr, double *ypos, plot_text(cr, ypos, fontdesc, tmp); for ( i=0; iruns[n].np = i; - dbgw->runs[n].len = len; dbgw->runs[n].scblock = scblock; - dbgw->runs[n].para_offs = para_offs; n++; if ( n == MAX_DEBUG_RUNS ) { -- cgit v1.2.3