mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Desktop: Switch to the latest unreleased version of Winit (#3177)
* Use unstable winit * Improve * Remove unnecessary heap indirection
This commit is contained in:
@@ -26,7 +26,7 @@ struct WindowWrapper {
|
||||
#[cfg(target_family = "wasm")]
|
||||
window: SurfaceHandle<HtmlCanvasElement>,
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
window: SurfaceHandle<Arc<winit::window::Window>>,
|
||||
window: SurfaceHandle<Arc<dyn winit::window::Window>>,
|
||||
}
|
||||
|
||||
#[cfg(target_family = "wasm")]
|
||||
@@ -187,7 +187,7 @@ impl ApplicationIo for WasmApplicationIo {
|
||||
#[cfg(target_family = "wasm")]
|
||||
type Surface = HtmlCanvasElement;
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
type Surface = Arc<winit::window::Window>;
|
||||
type Surface = Arc<dyn winit::window::Window>;
|
||||
#[cfg(feature = "wgpu")]
|
||||
type Executor = WgpuExecutor;
|
||||
#[cfg(not(feature = "wgpu"))]
|
||||
|
||||
Reference in New Issue
Block a user