@ -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) {
@ -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.
@ -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.