aboutsummaryrefslogtreecommitdiff
path: root/evc/src/debug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'evc/src/debug.rs')
-rw-r--r--evc/src/debug.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/evc/src/debug.rs b/evc/src/debug.rs
index 44b51cf..7b27b83 100644
--- a/evc/src/debug.rs
+++ b/evc/src/debug.rs
@@ -2,8 +2,8 @@ use crate::{frame::Frame, pixel::Pixel, view::View};
impl View<&mut Frame> {
pub fn draw_box(&mut self, color: Pixel) {
- let w = self.size.0;
- let h = self.size.1;
+ let w = self.size.x;
+ let h = self.size.y;
for x in 0..w {
self[(x, 0)] = color;
self[(x, h - 1)] = color;