Skip to content

Commit 1fbaaea

Browse files
committed
Add display_handle argument to create_surface
1 parent 42a1928 commit 1fbaaea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libProcessing/ffi/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ pub extern "C" fn processing_init() {
2828
#[unsafe(no_mangle)]
2929
pub extern "C" fn processing_create_surface(
3030
window_handle: u64,
31+
display_handle: u64,
3132
width: u32,
3233
height: u32,
3334
scale_factor: f32,
3435
) -> u64 {
3536
error::clear_error();
36-
error::check(|| renderer::create_surface(window_handle, width, height, scale_factor))
37-
.unwrap_or(0)
37+
error::check(|| {
38+
renderer::create_surface(window_handle, display_handle, width, height, scale_factor)
39+
})
40+
.unwrap_or(0)
3841
}
3942

4043
/// Destroy the surface associated with the given window ID.

0 commit comments

Comments
 (0)