|
|
@ -85,12 +85,7 @@ fn main() { |
|
|
|
cam.play_shutter_sound(ShutterSound::Normal) |
|
|
|
cam.play_shutter_sound(ShutterSound::Normal) |
|
|
|
.expect("Failed to play shutter sound"); |
|
|
|
.expect("Failed to play shutter sound"); |
|
|
|
|
|
|
|
|
|
|
|
rotate_image_to_screen( |
|
|
|
rotate_image_to_screen(&buf, top_screen.raw_framebuffer().ptr, WIDTH, HEIGHT); |
|
|
|
&buf, |
|
|
|
|
|
|
|
top_screen.raw_framebuffer().ptr, |
|
|
|
|
|
|
|
WIDTH, |
|
|
|
|
|
|
|
HEIGHT, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// We will only flush the "camera" screen, since the other screen is handled by `Console`
|
|
|
|
// We will only flush the "camera" screen, since the other screen is handled by `Console`
|
|
|
|
top_screen.flush_buffer(); |
|
|
|
top_screen.flush_buffer(); |
|
|
|