From 03678e0e95715c81bbded3a5b08cfea0ab1730b9 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Mon, 24 Jan 2022 18:46:17 -0500 Subject: [PATCH] Update example for Console API change --- ctru-rs/examples/time_rtc.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ctru-rs/examples/time_rtc.rs b/ctru-rs/examples/time_rtc.rs index c537069..f28159f 100644 --- a/ctru-rs/examples/time_rtc.rs +++ b/ctru-rs/examples/time_rtc.rs @@ -1,7 +1,5 @@ -use std::ptr; - use ctru::console::Console; -use ctru::gfx::{Gfx, Screen}; +use ctru::gfx::Gfx; use ctru::services::apt::Apt; use ctru::services::hid::{Hid, KeyPad}; @@ -70,7 +68,7 @@ fn main() { let hid = Hid::init().expect("Couldn't obtain HID controller"); let apt = Apt::init().expect("Couldn't obtain APT controller"); - let _console = Console::init(&gfx, Screen::Top); + let _console = Console::init(gfx.top_screen.borrow_mut()); print!("\x1b[30;16HPress Start to exit.");