Browse Source

Merge pull request #37 from AzureMarker/fix/unused-screen

pull/40/head
Meziu 3 years ago committed by GitHub
parent
commit
9f0984a455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      ctru-rs/src/console.rs

7
ctru-rs/src/console.rs

@ -9,7 +9,7 @@ static mut EMPTY_CONSOLE: PrintConsole = unsafe { const_zero::const_zero!(PrintC @@ -9,7 +9,7 @@ static mut EMPTY_CONSOLE: PrintConsole = unsafe { const_zero::const_zero!(PrintC
pub struct Console<'screen> {
context: Box<PrintConsole>,
screen: RefMut<'screen, dyn Screen>,
_screen: RefMut<'screen, dyn Screen>,
}
impl<'screen> Console<'screen> {
@ -21,7 +21,10 @@ impl<'screen> Console<'screen> { @@ -21,7 +21,10 @@ impl<'screen> Console<'screen> {
unsafe { consoleInit(screen.as_raw(), context.as_mut()) };
Console { context, screen }
Console {
context,
_screen: screen,
}
}
/// Returns true if a valid Console to print on is selected

Loading…
Cancel
Save