Update new builders for latest master

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2024-01-27 10:10:28 -08:00 committed by John Nunley
parent 8862ce0163
commit 3830b492c4
8 changed files with 9 additions and 12 deletions

View file

@ -6,7 +6,7 @@ use winit::{
event::{ElementState, Event, KeyEvent, WindowEvent},
event_loop::{EventLoop, EventLoopWindowTarget},
keyboard::Key,
window::{CursorIcon, CustomCursor, WindowBuilder},
window::{CursorIcon, CustomCursor, Window},
};
#[cfg(web_platform)]
use {
@ -42,7 +42,7 @@ fn main() -> Result<(), impl std::error::Error> {
console_log::init_with_level(log::Level::Debug).unwrap();
let event_loop = EventLoop::new().unwrap();
let builder = WindowBuilder::new().with_title("A fantastic window!");
let builder = Window::builder().with_title("A fantastic window!");
#[cfg(web_platform)]
let builder = {
use winit::platform::web::WindowBuilderExtWebSys;