Skip to content

Commit fc1dc5e

Browse files
committed
misc
1 parent 6fa1263 commit fc1dc5e

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

crates/bevy_winit/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ pub fn winit_runner(mut app: App) {
671671
// TODO
672672
// Upon resume, check if the new render surfaces are compatible with the
673673
// existing render device. If not (which should basically never happen),
674-
// and *then* try to rebuild the renderer.
674+
// then try to rebuild the renderer.
675675
*control_flow = ControlFlow::Exit;
676676
}
677677
}
@@ -739,6 +739,7 @@ pub fn winit_runner(mut app: App) {
739739
}
740740
}
741741

742+
// create any new windows
742743
#[cfg(not(target_arch = "wasm32"))]
743744
let (
744745
commands,

crates/bevy_winit/src/system.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ use crate::{
3636
/// If any of these entities are missing required components, those will be added with their
3737
/// default values.
3838
#[allow(clippy::too_many_arguments)]
39-
pub(crate) fn create_windows<'a, T>(
40-
event_loop: &EventLoopWindowTarget<T>,
39+
pub(crate) fn create_windows<'a>(
40+
event_loop: &EventLoopWindowTarget<()>,
4141
mut commands: Commands,
4242
windows: impl Iterator<Item = (Entity, Mut<'a, Window>)>,
4343
mut event_writer: EventWriter<WindowCreated>,

crates/bevy_winit/src/winit_config.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ pub struct WinitSettings {
3838

3939
impl WinitSettings {
4040
/// Default settings for games.
41-
///
42-
/// [`Continuous`](UpdateMode::Continuous) if windows have focus.
4341
pub fn game() -> Self {
4442
WinitSettings::default()
4543
}

crates/bevy_winit/src/winit_windows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ pub struct WinitWindows {
3939

4040
impl WinitWindows {
4141
/// Creates a `winit` window and associates it with our entity.
42-
pub fn create_window<T>(
42+
pub fn create_window(
4343
&mut self,
44-
event_loop: &winit::event_loop::EventLoopWindowTarget<T>,
44+
event_loop: &winit::event_loop::EventLoopWindowTarget<()>,
4545
entity: Entity,
4646
window: &Window,
4747
adapters: &mut AccessKitAdapters,

0 commit comments

Comments
 (0)