summaryrefslogtreecommitdiffstats
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
authorChet Gurevitch <chetgurevitch@protonmail.com>2017-10-11 18:52:23 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-12-23 21:39:09 -0800
commit76ca679e89cd7f431652e06892b791b5f8c43cf9 (patch)
treef4594990e94f8cfc94d90dd965cd14fe916557bc /src/renderer/mod.rs
parentae533e660f649413af15c2a826497de423a5211b (diff)
Update bitflags to v1
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index bb2edf15..afc4da97 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -828,9 +828,9 @@ impl<'a> RenderApi<'a> {
// Get font key for cell
// FIXME this is super inefficient.
let mut font_key = glyph_cache.font_key;
- if cell.flags.contains(cell::BOLD) {
+ if cell.flags.contains(cell::Flags::BOLD) {
font_key = glyph_cache.bold_key;
- } else if cell.flags.contains(cell::ITALIC) {
+ } else if cell.flags.contains(cell::Flags::ITALIC) {
font_key = glyph_cache.italic_key;
}
@@ -849,7 +849,7 @@ impl<'a> RenderApi<'a> {
// FIXME This is a super hacky way to do underlined text. During
// a time crunch to release 0.1, this seemed like a really
// easy, clean hack.
- if cell.flags.contains(cell::UNDERLINE) {
+ if cell.flags.contains(cell::Flags::UNDERLINE) {
let glyph_key = GlyphKey {
font_key: font_key,
size: glyph_cache.font_size,