mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
rust: adapt NcDirect::render_frame() #1411
This commit is contained in:
parent
0a89a4e8b3
commit
1a1305faee
@ -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!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user