Commit b2b2360f authored by Rahix's avatar Rahix 🦀
Browse files

ingame: Properly clear the screen

Due to the camera translation, the clear is currently not actually
happening over the entire visible canvas.  Reset the transform before
clearing to ensure it's working correctly.
parent f2a0c14a
......@@ -85,6 +85,7 @@ impl gamestate::State for InGameState {
fn update(&mut self) -> gamestate::Transition {
{
let rendering = self.resources.get::<resources::Rendering>().unwrap();
rendering.set_transform(1.0, 0.0, 0.0, 1.0, 0.0, 0.0);
rendering.set_fill_style(&colors::BACKGROUND);
rendering.fill_rect(0.0, 0.0, 1920.0, 1080.0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment