From 70514416c2ade2abe628efbd0a629a66febdeb13 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 6 Dec 2022 19:30:03 +0100 Subject: minor stuff, store translation as i8 --- evc/src/debug.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'evc/src/debug.rs') diff --git a/evc/src/debug.rs b/evc/src/debug.rs index cbc598e..0858fe4 100644 --- a/evc/src/debug.rs +++ b/evc/src/debug.rs @@ -25,10 +25,13 @@ impl Frame { let (mut cx, mut cy) = (sx, sy); let mut lc = 0.0; while lc < len { - self[Vec2 { - x: cx as isize, - y: cy as isize, - }] = color; + self.set( + Vec2 { + x: cx as isize, + y: cy as isize, + }, + color, + ); lc += 0.5; cx += nx * 0.5; cy += ny * 0.5; -- cgit v1.2.3-70-g09d2