From bcfd0fd84c3428c8dbfc137be6d4d5d989fc02c3 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Thu, 30 Mar 2023 20:14:51 +0200 Subject: [PATCH] Update CAM example --- ctru-rs/examples/camera-image.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ctru-rs/examples/camera-image.rs b/ctru-rs/examples/camera-image.rs index 7559275..a852830 100644 --- a/ctru-rs/examples/camera-image.rs +++ b/ctru-rs/examples/camera-image.rs @@ -1,5 +1,5 @@ use ctru::prelude::*; -use ctru::services::cam::{Cam, CamOutputFormat, CamShutterSoundType, CamSize, Camera}; +use ctru::services::cam::{Cam, OutputFormat, ShutterSound, ViewSize, Camera}; use ctru::services::gfx::Screen; use ctru::services::gspgpu::FramebufferFormat; @@ -37,10 +37,10 @@ fn main() { let camera = &mut cam.outer_right_cam; camera - .set_view_size(CamSize::CTR_TOP_LCD) + .set_view_size(ViewSize::TopLCD) .expect("Failed to set camera size"); camera - .set_output_format(CamOutputFormat::RGB_565) + .set_output_format(OutputFormat::Rgb565) .expect("Failed to set camera output format"); camera .set_noise_filter(true) @@ -83,7 +83,7 @@ fn main() { ) .expect("Failed to take picture"); - cam.play_shutter_sound(CamShutterSoundType::NORMAL) + cam.play_shutter_sound(ShutterSound::Normal) .expect("Failed to play shutter sound"); rotate_image_to_screen(