aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-08-13 22:35:30 +0200
committerThomas White <taw@bitwiz.org.uk>2013-08-13 22:35:30 +0200
commitf323171d52c37b97fe06168aec91b33d174b0fb7 (patch)
tree8bf215d4ff25ca89b0ad8dfc170c5c2554f4cf03 /src
parent2b9ce018705558f725b7afca00ed714b3582e514 (diff)
Show spaces (for debugging)
Diffstat (limited to 'src')
-rw-r--r--src/render.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render.c b/src/render.c
index ede41b5..354664d 100644
--- a/src/render.c
+++ b/src/render.c
@@ -110,6 +110,11 @@ static void draw_outline(cairo_t *cr, struct wrap_box *box)
cairo_set_line_width(cr, 0.1);
cairo_stroke(cr);
+ cairo_rectangle(cr, pango_units_to_double(box->width), -asc,
+ pango_units_to_double(box->sp), asc + desc);
+ cairo_set_source_rgb(cr, 0.7, 0.4, 0.7);
+ cairo_fill(cr);
+
snprintf(tmp, 31, "%lli", (long long int)box->sc_offset);
cairo_select_font_face(cr, "Sans", CAIRO_FONT_SLANT_ITALIC,
CAIRO_FONT_WEIGHT_NORMAL);