diff options
Diffstat (limited to 'evc/src/debug.rs')
-rw-r--r-- | evc/src/debug.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/evc/src/debug.rs b/evc/src/debug.rs index 0858fe4..d2102ba 100644 --- a/evc/src/debug.rs +++ b/evc/src/debug.rs @@ -1,4 +1,4 @@ -use crate::{frame::Frame, pixel::Pixel, vec2::Vec2, view::View}; +use crate::{frame::Frame, helpers::vector::Vec2, pixel::Pixel, view::View}; impl View<&mut Frame> { pub fn draw_box(&mut self, color: Pixel) { @@ -16,7 +16,7 @@ impl View<&mut Frame> { } impl Frame { - pub fn draw_line(&mut self, start: Vec2, end: Vec2, color: Pixel) { + pub fn draw_line(&mut self, start: Vec2<isize>, end: Vec2<isize>, color: Pixel) { let (sx, sy) = (start.x as f32, start.y as f32); let (ex, ey) = (end.x as f32, end.y as f32); let (dx, dy) = (ex - sx, ey - sy); |