software_renderer: return the modified region from the render call

Closes #2389
This commit is contained in:
Olivier Goffart 2023-03-24 15:28:19 +01:00 committed by Olivier Goffart
parent 17e7c1f0c7
commit 476ab383ea
2 changed files with 33 additions and 8 deletions

View file

@ -168,7 +168,7 @@ pub unsafe extern "C" fn slint_software_renderer_render_rgb8(
pixel_stride: usize,
) {
let buffer = core::slice::from_raw_parts_mut(buffer, buffer_len);
(*(r as *const SoftwareRenderer)).render(buffer, pixel_stride)
(*(r as *const SoftwareRenderer)).render(buffer, pixel_stride);
}
#[no_mangle]