Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
  • Loading branch information
sagudev committed Nov 23, 2024
1 parent cbb9440 commit 9e873ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/chaos_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static TRIANGLE_POINTS: [(f32, f32); 3] = [
(400.0 - 259.81, 300.0 + 75.0 - 300.0),
];

#[cfg(not(any(target_os = "macos", feature = "sm-raw-window-handle-05")))]
#[cfg(not(all(target_os = "macos", feature = "sm-raw-window-handle-05")))]
fn main() {
println!("The `chaos_game` demo is not yet supported on this platform.");
}
Expand All @@ -56,7 +56,7 @@ fn main() {
let window_size = Size2D::new(window_size.width as i32, window_size.height as i32);
let handle = window.window_handle().unwrap();
let native_widget = connection
.create_native_widget_from_raw_window_handle(handle.as_raw(), window_size)
.create_native_widget_from_window_handle(handle.as_raw(), window_size)
.unwrap();

let surface_type = SurfaceType::Widget { native_widget };
Expand Down

0 comments on commit 9e873ba

Please sign in to comment.