aboutsummaryrefslogtreecommitdiff
path: root/renderer/src/main.rs
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-06-09 16:01:55 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-06-09 16:01:55 +0200
commitc1b5937b64649904689fea8da2c06e0b66ae8332 (patch)
tree458e7a8b5e6489e26e58ffbb134fd40c7f04dd5e /renderer/src/main.rs
parent024a73e9575980b40c93d5f60c0e4e3f8e54187c (diff)
downloadtwclient-c1b5937b64649904689fea8da2c06e0b66ae8332.tar
twclient-c1b5937b64649904689fea8da2c06e0b66ae8332.tar.bz2
twclient-c1b5937b64649904689fea8da2c06e0b66ae8332.tar.zst
asdfss
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));