aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-28 19:03:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-28 19:03:38 +0000
commitfe882bddbab2b3c75220976ba01cc998773fdfa5 (patch)
treeaf15d9b85202230687a94769c59a6b517ac112f8 /terminal.h
parentfont: add font_glyph_for_utf8() (diff)
font: populate glyph cache (ASCII characters only) when instantiating font
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 83efe69a..89f3dc39 100644
--- a/terminal.h
+++ b/terminal.h
@@ -223,6 +223,8 @@ struct font {
double position;
double thickness;
} strikeout;
+
+ struct glyph cache[256];
};
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };