aboutsummaryrefslogtreecommitdiff
path: root/renderer/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'renderer/src/main.rs')
-rw-r--r--renderer/src/main.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/renderer/src/main.rs b/renderer/src/main.rs
index 63396cc..985a717 100644
--- a/renderer/src/main.rs
+++ b/renderer/src/main.rs
@@ -15,7 +15,7 @@ use signal_hook::{
};
use skia_safe::{
gpu::{gl::FramebufferInfo, BackendRenderTarget, SurfaceOrigin},
- Canvas, Color, Color4f, ColorSpace, ColorType, Paint, Point, Surface,
+ Canvas, Color, ColorType, Surface,
};
use std::{
collections::HashSet, convert::TryInto, net::IpAddr, process::exit, str::FromStr,
@@ -228,7 +228,12 @@ impl Renderer {
}
pub fn draw(&mut self, canvas: &mut Canvas, dims: (f32, f32)) {
canvas.clear(Color::TRANSPARENT);
- let center = self.world.local_tee().map(|t| (t.x, t.y)).unwrap_or((0, 0));
+ let center = self
+ .world
+ .tees
+ .local()
+ .map(|t| (t.x, t.y))
+ .unwrap_or((0, 0));
canvas.save();
canvas.translate((dims.0 / 2.0, dims.1 / 2.0));