From 23590b5069a2ad466c3c85997c35bf9b07bc6339 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 12 Feb 2017 10:02:40 -0500 Subject: optimize drawing sequences of ascii characters bypasses pango for this common case, which should speed up drawing --- src/display.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/display.h') diff --git a/src/display.h b/src/display.h index 5f79948..e4ddc28 100644 --- a/src/display.h +++ b/src/display.h @@ -9,6 +9,8 @@ struct runes_display { cairo_t *cr; cairo_pattern_t *buffer; PangoLayout *layout; + cairo_scaled_font_t *scaled_font; + PangoGlyph *ascii_glyph_index_cache; int row_visible_offset; @@ -16,6 +18,7 @@ struct runes_display { int ypixel; int fontx; int fonty; + int font_descent; struct vt100_loc selection_start; struct vt100_loc selection_end; -- cgit v1.2.3-54-g00ecf