Browse Source

Fmt

pull/134/head
Andrea Ciliberti 1 year ago
parent
commit
8328721b5b
  1. 2
      ctru-rs/examples/touch-screen.rs
  2. 4
      ctru-rs/src/services/gfx.rs
  3. 2
      ctru-rs/src/services/ndsp/wave.rs

2
ctru-rs/examples/touch-screen.rs

@ -34,7 +34,7 @@ fn main() { @@ -34,7 +34,7 @@ fn main() {
if touch != old_touch {
// Move the cursor back to the top of the screen and print the coordinates.
print!("\x1b[1;1HTouch Screen position: {:#?}", touch);
// Special case for when the user lifts the stylus/finger from the screen.
// This is done to avoid some screen tearing.
if touch == (0, 0) {

4
ctru-rs/src/services/gfx.rs

@ -104,9 +104,9 @@ pub trait Swap: private::Sealed { @@ -104,9 +104,9 @@ pub trait Swap: private::Sealed {
fn swap_buffers(&mut self);
/// Set whether to use double buffering.
///
///
/// # Notes
///
///
/// Double buffering is enabled by default.
/// [`Swap::swap_buffers`] must be called after this function for the configuration
/// change to take effect.

2
ctru-rs/src/services/ndsp/wave.rs

@ -154,7 +154,7 @@ impl Wave { @@ -154,7 +154,7 @@ impl Wave {
/// Set the amount of samples to be read.
///
/// # Note
///
///
///
/// This function doesn't resize the internal buffer. Operations of this kind are particularly useful to allocate memory pools
/// for VBR (Variable BitRate) formats, like OGG Vorbis.

Loading…
Cancel
Save