aboutsummaryrefslogtreecommitdiffstats
path: root/src/display.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-02-12 16:36:12 -0500
committerJesse Luehrs <doy@tozt.net>2017-02-12 16:36:12 -0500
commit99ec8a898b7571c07fb322e2365b186df1681687 (patch)
treec54ef209ea2c1f5aa33fcb9ea7bfcac6a475aada /src/display.h
parent23590b5069a2ad466c3c85997c35bf9b07bc6339 (diff)
downloadrunes-99ec8a898b7571c07fb322e2365b186df1681687.tar.gz
runes-99ec8a898b7571c07fb322e2365b186df1681687.zip
avoid an allocation on every glyph string draw
probably not super meaningful compared to the cost of the cairo operations, but may as well
Diffstat (limited to 'src/display.h')
-rw-r--r--src/display.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h
index e4ddc28..79ab068 100644
--- a/src/display.h
+++ b/src/display.h
@@ -11,6 +11,7 @@ struct runes_display {
PangoLayout *layout;
cairo_scaled_font_t *scaled_font;
PangoGlyph *ascii_glyph_index_cache;
+ cairo_glyph_t *glyph_buf;
int row_visible_offset;
@@ -31,6 +32,7 @@ struct runes_display {
};
RunesDisplay *runes_display_new(char *font_name);
+void runes_display_set_window_size(RunesTerm *t, int row, int col);
void runes_display_set_context(RunesTerm *t, cairo_t *cr);
void runes_display_draw_screen(RunesTerm *t);
void runes_display_draw_cursor(RunesTerm *t);