diff options
author | Aaditya Dhruv <[email protected]> | 2023-01-01 21:22:16 +0530 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2023-01-01 21:22:16 +0530 |
commit | e2586079c6b2510e546ea9dbc797b887716485ef (patch) | |
tree | 0ccd7bff22c0f307276963f76ea1ed188d9dfb01 /src/main.rs | |
parent | 83b85051c299979d2980b7558a7a0bb3df5c80d2 (diff) |
rendering rechange, execute fn opcode
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index a49fa6f..2b08c5e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ pub fn main() { //choose white color canvas.set_draw_color(Color::RGB(255, 255, 255)); //render all the rectangles as white pixels on the canvas - canvas.fill_rects(chip.render()).unwrap(); + chip.render(&mut canvas); //display canvas canvas.present(); |