diff options
| author | Fenrir <[email protected]> | 2018-02-06 23:45:56 -0700 |
|---|---|---|
| committer | FenrirWolf <[email protected]> | 2018-02-06 23:56:18 -0700 |
| commit | d46f9f45657dee9dc0277e5470fcf7e8bb3eb3e7 (patch) | |
| tree | 8343003becc29891e0bb57ed376245750e6dde47 /examples/src/bin/hello-both-screens.rs | |
| parent | Add wait_for_vblank function (diff) | |
| download | ctru-rs-d46f9f45657dee9dc0277e5470fcf7e8bb3eb3e7.tar.xz ctru-rs-d46f9f45657dee9dc0277e5470fcf7e8bb3eb3e7.zip | |
Update examples
Diffstat (limited to 'examples/src/bin/hello-both-screens.rs')
| -rw-r--r-- | examples/src/bin/hello-both-screens.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/src/bin/hello-both-screens.rs b/examples/src/bin/hello-both-screens.rs index 1c214e9..33229ea 100644 --- a/examples/src/bin/hello-both-screens.rs +++ b/examples/src/bin/hello-both-screens.rs @@ -9,7 +9,7 @@ fn main() { // Initialize services let apt = Apt::init().unwrap(); let hid = Hid::init().unwrap(); - let mut gfx = Gfx::default(); + let gfx = Gfx::default(); // Start a console on the top screen let top_screen = Console::init(Screen::Top); @@ -33,6 +33,7 @@ fn main() { while apt.main_loop() { gfx.flush_buffers(); gfx.swap_buffers(); + gfx.wait_for_vblank(); hid.scan_input(); if hid.keys_down().contains(KeyPad::KEY_START) { |