Make name of method more explicit

This commit is contained in:
Hanno Braun 2025-03-25 20:30:19 +01:00
parent 29c3111963
commit a47316b443
3 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@ impl ApplicationHandler for DisplayState {
fn about_to_wait(&mut self, _: &ActiveEventLoop) { fn about_to_wait(&mut self, _: &ActiveEventLoop) {
let Some(window) = &self.window else { return }; let Some(window) = &self.window else { return };
window.window().request_redraw(); window.winit_window().request_redraw();
} }
} }

View File

@ -39,7 +39,7 @@ impl Renderer {
backends: wgpu::Backends::all(), backends: wgpu::Backends::all(),
..Default::default() ..Default::default()
}); });
let surface = instance.create_surface(screen.window())?; let surface = instance.create_surface(screen.winit_window())?;
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_arch = "wasm32"))]
for adapter in instance.enumerate_adapters(wgpu::Backends::all()) { for adapter in instance.enumerate_adapters(wgpu::Backends::all()) {

View File

@ -54,7 +54,7 @@ impl Window {
} }
} }
pub fn window(&self) -> Arc<winit::window::Window> { pub fn winit_window(&self) -> Arc<winit::window::Window> {
self.inner.clone() self.inner.clone()
} }
} }