Flush before applying console attributes
This commit is contained in:
parent
2cd32a8c88
commit
26238c9a24
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user