Browse Source

Formatting

pull/22/head
Andrea Ciliberti 3 years ago
parent
commit
2bc475db68
  1. 2
      ctru-rs/examples/gfx-wide-mode.rs
  2. 2
      ctru-rs/examples/hello-world.rs
  3. 5
      ctru-rs/examples/network-sockets.rs
  4. 5
      ctru-rs/src/console.rs

2
ctru-rs/examples/gfx-wide-mode.rs

@ -26,7 +26,7 @@ fn main() { @@ -26,7 +26,7 @@ fn main() {
let wide_mode = gfx.top_screen.borrow().get_wide_mode();
gfx.top_screen.borrow_mut().set_wide_mode(!wide_mode);
_console = Console::init(gfx.top_screen.borrow_mut());
println!("Press A to enable/disable wide screen mode.");
}

2
ctru-rs/examples/hello-world.rs

@ -41,4 +41,4 @@ fn main() { @@ -41,4 +41,4 @@ fn main() {
//Wait for VBlank
gfx.wait_for_vblank();
}
}
}

5
ctru-rs/examples/network-sockets.rs

@ -23,10 +23,7 @@ fn main() { @@ -23,10 +23,7 @@ fn main() {
let server = TcpListener::bind("0.0.0.0:80").unwrap();
server.set_nonblocking(true).unwrap();
println!(
"Point your browser to http://{}/\n",
soc.host_address()
);
println!("Point your browser to http://{}/\n", soc.host_address());
while apt.main_loop() {
gfx.wait_for_vblank();

5
ctru-rs/src/console.rs

@ -19,10 +19,7 @@ impl<'screen> Console<'screen> { @@ -19,10 +19,7 @@ impl<'screen> Console<'screen> {
unsafe { consoleInit(screen.as_raw(), context.as_mut()) };
Console {
context,
screen,
}
Console { context, screen }
}
/// Select this console as the current target for stdout

Loading…
Cancel
Save