fill software window background with black

This commit is contained in:
Wez Furlong committed 2019-09-15 19:43:32 -07:00
1 parent 1c8ba615f3
commit c19b7db705
1 file changed
+3 -9
+3 -9
View File
@@ -33,14 +33,6 @@ impl WindowCallbacks for TermWindow {
}
fn destroy(&mut self) {
/*
Future::with_executor(Connection::executor(), move || {
if Mux::get().unwrap().is_empty() {
Connection::get().unwrap().terminate_message_loop();
}
Ok(())
});
*/
Connection::get().unwrap().terminate_message_loop();
}
@@ -48,7 +40,9 @@ impl WindowCallbacks for TermWindow {
self
}
fn paint(&mut self, ctx: &mut dyn PaintContext) {}
fn paint(&mut self, ctx: &mut dyn PaintContext) {
ctx.clear(Color::rgb(0, 0, 0));
}
}
impl Drop for TermWindow {