mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 19:08:28 +00:00
Make name of method more explicit
This commit is contained in:
parent
29c3111963
commit
a47316b443
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()) {
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user