From 9ef0a7dcd6884822ab9cc4781e210bea6620838f Mon Sep 17 00:00:00 2001 From: TechiePi Date: Sun, 9 Oct 2022 13:58:05 +0200 Subject: [PATCH] Fix ``camera-image.rs`` example (III) --- ctru-rs/examples/camera-image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctru-rs/examples/camera-image.rs b/ctru-rs/examples/camera-image.rs index fb51229..de97712 100644 --- a/ctru-rs/examples/camera-image.rs +++ b/ctru-rs/examples/camera-image.rs @@ -83,7 +83,7 @@ fn main() { .expect("Failed to take picture"); } - let img = convert_image_to_rgb8(&buf, 0, 0, WIDTH as usize, HEIGHT as usize); + let img = convert_image_to_rgb8(&buf, 0, 0, WIDTH, HEIGHT); unsafe { gfx.top_screen