diff options
| author | Fenrir <[email protected]> | 2017-06-06 17:10:20 -0600 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2017-07-10 11:30:57 -0600 |
| commit | a572fa0a5aca2c990ecc5a8a0aaf48df4b67c4f2 (patch) | |
| tree | 21cd16fab40e0d8368f06f383d47e6741ea9c383 /ctru-rs/src/console.rs | |
| parent | Handle linking in ctru-rs build script (diff) | |
| download | archived-ctru-rs-a572fa0a5aca2c990ecc5a8a0aaf48df4b67c4f2.tar.xz archived-ctru-rs-a572fa0a5aca2c990ecc5a8a0aaf48df4b67c4f2.zip | |
Update libraries for ctru-sys changes
Diffstat (limited to 'ctru-rs/src/console.rs')
| -rw-r--r-- | ctru-rs/src/console.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ctru-rs/src/console.rs b/ctru-rs/src/console.rs index 3284d00..2a1c872 100644 --- a/ctru-rs/src/console.rs +++ b/ctru-rs/src/console.rs @@ -3,30 +3,28 @@ use std::ptr; use gfx::Screen; -use libctru::console::*; - pub struct Console { - context: PrintConsole, + context: ::libctru::PrintConsole, } impl Console { pub fn init(screen: Screen) -> Self { unsafe { - let ret = *(consoleInit(screen.into(), ptr::null_mut())); + let ret = *(::libctru::consoleInit(screen.into(), ptr::null_mut())); Console { context: ret } } } pub fn select(&mut self) { - unsafe { consoleSelect(&mut self.context); } + unsafe { ::libctru::consoleSelect(&mut self.context); } } pub fn set_window(&mut self, x: i32, y: i32, width: i32, height: i32) { - unsafe { consoleSetWindow(&mut self.context, x, y, width, height) } + unsafe { ::libctru::consoleSetWindow(&mut self.context, x, y, width, height) } } pub fn clear(&mut self) { - unsafe { consoleClear() } + unsafe { ::libctru::consoleClear() } } } |