Skip to content

Commit

Permalink
update winit to 0.30 (SecondHalfGames#178)
Browse files Browse the repository at this point in the history
* update winit to 0.30

* fully commenting out the is_init stuff until further notice

* remove fixmes

* regroup winit imports

* cleanup some

* fix build

* revert removal of is_init bugfix and rename handle_event to handle_window_event

* simplify is_init logic
  • Loading branch information
msparkles committed Sep 10, 2024
1 parent bde19b3 commit 3bc5d11
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/bootstrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use std::time::Instant;

use winit::{
application::ApplicationHandler,
dpi::LogicalSize,
event::{StartCause, WindowEvent},
event_loop::{ActiveEventLoop, ControlFlow, EventLoop},
window::{Window, WindowAttributes, WindowId},
Expand Down Expand Up @@ -228,9 +227,7 @@ fn run(body: impl ExampleBody) {

// Normal winit setup for an EventLoop and Window.
let event_loop = EventLoop::new().unwrap();
let attributes = WindowAttributes::default()
.with_title(title)
.with_inner_size(LogicalSize::new(800.0, 600.0));
let window_attribute = Window::default_attributes().with_title(title);

// Create our yakui state. This is where our UI will be built, laid out, and
// calculations for painting will happen.
Expand All @@ -252,7 +249,7 @@ fn run(body: impl ExampleBody) {
// Set up some default state that we'll modify later.
let mut app = App {
yak,
attributes,
attributes: window_attribute,
start: Instant::now(),
state: ExampleState {
time: 0.0,
Expand Down

0 comments on commit 3bc5d11

Please sign in to comment.