Make name of method more explicit

This commit is contained in:
Hanno Braun 2025-03-28 18:50:46 +01:00
parent 6e99385041
commit 7e47b2c868
2 changed files with 5 additions and 3 deletions

View File

@ -65,7 +65,9 @@ impl ApplicationHandler for DisplayState {
window.get_mut()
} else {
let window = block_on(Window::new(event_loop)).unwrap();
self.windows.entry(window.window().id()).or_insert(window)
self.windows
.entry(window.winit_window().id())
.or_insert(window)
};
if let Some(mesh) = self.tri_mesh.take() {
@ -149,7 +151,7 @@ impl ApplicationHandler for DisplayState {
}
if !drawn {
window.window().request_redraw();
window.winit_window().request_redraw();
}
}
}

View File

@ -57,7 +57,7 @@ impl Window {
})
}
pub fn window(&self) -> &winit::window::Window {
pub fn winit_window(&self) -> &winit::window::Window {
&self.window
}