Flush before applying console attributes

This commit is contained in:
Corey Richardson 2014-05-11 20:08:49 -04:00
parent 2cd32a8c88
commit 26238c9a24

View File

@ -57,6 +57,7 @@ fn color_to_bits(color: color::Color) -> u16 {
impl<T: Writer> WinConsole<T> {
fn apply(&mut self) {
let _unused = self.buf.flush();
let mut accum: libc::WORD = 0;
accum |= color_to_bits(self.foreground);
accum |= color_to_bits(self.background) << 4;