提交 26238c9a 编写于 作者: C Corey Richardson

Flush before applying console attributes

上级 2cd32a8c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册