rust: adapt NcDirect::render_frame() #1411

This commit is contained in:
nick black 2021-03-14 22:01:15 -04:00 committed by Nick Black
parent 0a89a4e8b3
commit 1a1305faee

View File

@ -93,8 +93,10 @@ impl NcDirect {
filename: &str,
blitter: NcBlitter,
scale: NcScale,
maxy: i32,
maxx: i32,
) -> NcResult<&'a mut NcPlane> {
let res = unsafe { crate::ncdirect_render_frame(self, cstring![filename], blitter, scale) };
let res = unsafe { crate::ncdirect_render_frame(self, cstring![filename], blitter, scale, maxy, maxx) };
error_ref_mut![
res,
&format!(