rust: minor examples updates

pull/1516/head
joseLuís 3 years ago
parent ae2af14281
commit 36a7355cd8

@ -31,7 +31,6 @@ fn main() -> NcResult<()> {
println!("\nExiting...");
rsleep![&mut nc, 1, 500];
nc.stop()?;
rsleep![&mut nc, 1];
Ok(())
}

@ -54,8 +54,11 @@ fn main() -> NcResult<()> {
let voptions = NcVisualOptions::without_plane(1, 2, 0, 0, cell_y, cell_x, NCBLIT_PIXEL, 0);
pixels.render(&mut nc, &voptions)?;
rsleep![&mut nc, 10];
// FIXME: segfaults
// let mut stdplane = nc.stdplane();
// let mut vplane = NcPlane::new_bound(&mut stdplane, 0, 0, 4, 4)?
rsleep![&mut nc, 10];
pixels.destroy();
Ok(())

Loading…
Cancel
Save