mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Adapt the plotter example to the SharedImageBuffer API removal
This commit is contained in:
parent
42ba8ba7b0
commit
485fc72d15
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ fn render_plot(pitch: f32) -> sixtyfps::Image {
|
|||
drop(chart);
|
||||
drop(root);
|
||||
|
||||
sixtyfps::SharedImageBuffer::RGB8(pixel_buffer).into()
|
||||
sixtyfps::Image::new_rgb8(pixel_buffer)
|
||||
}
|
||||
|
||||
#[cfg_attr(target_arch = "wasm32", wasm_bindgen(start))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue