Skip to content

Commit

Permalink
refactor: update window init using deprecated method
Browse files Browse the repository at this point in the history
I will further update it later, this is just enough for the crate to
compile
  • Loading branch information
imrn99 committed May 3, 2024
1 parent 0556a6d commit 88d6674
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions honeycomb-render/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use winit::event::{Event, WindowEvent};
use winit::event_loop::EventLoop;
use winit::window::Window;
use winit::window::{Window, WindowAttributes};

use crate::state::State;
use crate::RenderParameters;
Expand Down Expand Up @@ -111,9 +111,9 @@ impl Runner {
impl Default for Runner {
fn default() -> Self {
let event_loop = EventLoop::new().unwrap();
#[allow(unused_mut)]
let mut builder = winit::window::WindowBuilder::new();
let window = builder.build(&event_loop).unwrap();
let window = event_loop
.create_window(WindowAttributes::default())
.unwrap();

Self { event_loop, window }
}
Expand Down

0 comments on commit 88d6674

Please sign in to comment.