[rust] update ncdirectf_render #1738

pull/1748/head
joseLuís 3 years ago
parent 5426e153f7
commit 8d902f5c2b

@ -19,8 +19,8 @@ fn main() {
}
let vframe1 = NcDirectF::from_bgra(&buffer, H, W * 4, W).expect("couldnt create visual");
let mut voptions1 = NcVisualOptions::without_plane(0, 0, 0, 0, H, W, NCBLIT_PIXEL, 0, 0);
let v = vframe1.ncdirectf_render(nc, &mut voptions1)
let voptions1 = NcVisualOptions::without_plane(0, 0, 0, 0, H, W, NCBLIT_PIXEL, 0, 0);
let v = vframe1.ncdirectf_render(nc, &voptions1)
.expect("failed to render image to sixels");
nc.raster_frame(v, NCALIGN_LEFT).expect("failed to print sixels");
vframe1.ncdirectf_free();

@ -513,7 +513,7 @@ impl NcDirectF {
pub fn ncdirectf_render(
&mut self,
ncd: &mut NcDirect,
options: &mut NcVisualOptions,
options: &NcVisualOptions,
) -> NcResult<&mut NcDirectV> {
error_ref_mut![
unsafe {

Loading…
Cancel
Save