Skip to content

Commit

Permalink
fixups
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 f6f47f5 commit a3067cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/chaos_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
//
//! Demonstrates how to use `surfman` to draw to a window surface via the CPU.
use euclid::default::Point2D;
use euclid::default::{Point2D, Size2D};
use rand::{self, Rng};
use surfman::{SurfaceAccess, SurfaceType};
use winit::dpi::PhysicalSize;
use winit::event::WindowEvent::KeyboardInput;
use winit::event::{DeviceEvent, Event, WindowEvent};
use winit::event_loop::{ControlFlow, EventLoop};
use winit::raw_window_handle::HasWindowHandle;
use winit::window::WindowBuilder;

#[cfg(target_os = "macos")]
Expand Down Expand Up @@ -45,7 +46,7 @@ fn main() {
let window = WindowBuilder::new()
.with_title("Chaos game example")
.with_inner_size(physical_size)
.build(&event_loop)
.build(&event_loop.unwrap())
.unwrap();

window.set_visible(true);
Expand Down

0 comments on commit a3067cb

Please sign in to comment.