Use pancurses::chtype directly

This commit is contained in:
Alexandre Bury 2017-06-13 23:49:55 -07:00
parent 2cdf546455
commit 88d3d81e88

View File

@ -5,7 +5,7 @@ use backend;
use event::{Event, Key}; use event::{Event, Key};
use std::cell::{RefCell, Cell}; use std::cell::{RefCell, Cell};
use std::collections::HashMap; use std::collections::HashMap;
use theme::{Color, ColorStyle, ColorPair, Effect}; use theme::{Color, ColorPair, Effect};
use utf8; use utf8;
pub struct Concrete { pub struct Concrete {
@ -59,7 +59,7 @@ impl Concrete {
let i = self.get_or_create(pair); let i = self.get_or_create(pair);
self.current_style.set(pair); self.current_style.set(pair);
let style = pancurses::COLOR_PAIR(i as u32); let style = pancurses::COLOR_PAIR(i as pancurses::chtype);
self.window.attron(style); self.window.attron(style);
} }
} }