From a3067cbd34a8412df2a796a99df8ce10a0c9a1a6 Mon Sep 17 00:00:00 2001 From: sagudev <16504129+sagudev@users.noreply.github.com> Date: Sat, 23 Nov 2024 13:05:36 +0100 Subject: [PATCH] fixups Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --- examples/chaos_game.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/chaos_game.rs b/examples/chaos_game.rs index f7abd25b..5287bcf3 100644 --- a/examples/chaos_game.rs +++ b/examples/chaos_game.rs @@ -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")] @@ -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);