From 76ca679e89cd7f431652e06892b791b5f8c43cf9 Mon Sep 17 00:00:00 2001 From: Chet Gurevitch Date: Wed, 11 Oct 2017 18:52:23 -0700 Subject: Update bitflags to v1 --- src/renderer/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/renderer/mod.rs') 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, -- cgit