diff --git a/src/context.rs b/src/context.rs index 5d76a76..ee2de5f 100644 --- a/src/context.rs +++ b/src/context.rs @@ -115,7 +115,7 @@ impl Context { Context { data: data, win_size: win_size, - clear_color: [0.0, 0.0, 1.0, 1.0], + clear_color: [0.7, 0.7, 0.7, 1.0], window: window, device: device, factory: factory, @@ -135,10 +135,6 @@ impl Context { } } - pub fn set_clear_color(&mut self, color: [f32; 4]) { - self.clear_color = color; - } - pub fn clear(&mut self) { self.encoder.clear(&self.data.out, self.clear_color); self.encoder.clear_depth(&self.data.out_depth, 1.0); diff --git a/src/main_menu_screen.rs b/src/main_menu_screen.rs index 1cdd3cb..c3a8493 100644 --- a/src/main_menu_screen.rs +++ b/src/main_menu_screen.rs @@ -115,7 +115,6 @@ impl MainMenuScreen { impl Screen for MainMenuScreen { fn tick(&mut self, context: &mut Context, _: Time) { - context.set_clear_color([0.7, 0.7, 0.7, 1.0]); context.clear(); context.set_basic_color([0.0, 0.0, 0.0, 1.0]); self.button_manager.draw(context); diff --git a/src/tactical_screen.rs b/src/tactical_screen.rs index e8b0f98..adf6aa2 100644 --- a/src/tactical_screen.rs +++ b/src/tactical_screen.rs @@ -886,7 +886,6 @@ impl TacticalScreen { } fn draw(&mut self, context: &mut Context, dtime: Time) { - context.set_clear_color([0.7, 0.7, 0.7, 1.0]); context.clear(); self.draw_scene(context, dtime); let player_info = self.player_info.get(self.core.player_id()); diff --git a/src/visualizer.rs b/src/visualizer.rs index 760ed28..c7820ed 100644 --- a/src/visualizer.rs +++ b/src/visualizer.rs @@ -54,7 +54,6 @@ impl Visualizer { fn draw(&mut self) { let dtime = self.update_time(); - self.context.set_clear_color([0.8, 0.8, 0.8, 1.0]); self.context.clear(); { let screen = self.screens.last_mut().unwrap();