mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-07 07:45:52 +00:00
Simplify method argument
This commit is contained in:
parent
481222dbcb
commit
679f1ff226
@ -274,7 +274,7 @@ impl Renderer {
|
|||||||
&mut self,
|
&mut self,
|
||||||
camera: &Camera,
|
camera: &Camera,
|
||||||
config: &mut DrawConfig,
|
config: &mut DrawConfig,
|
||||||
window: &egui_winit::winit::window::Window,
|
scale_factor: f32,
|
||||||
status: &mut StatusReport,
|
status: &mut StatusReport,
|
||||||
egui_input: egui::RawInput,
|
egui_input: egui::RawInput,
|
||||||
) -> Result<(), DrawError> {
|
) -> Result<(), DrawError> {
|
||||||
@ -555,7 +555,7 @@ impl Renderer {
|
|||||||
// Note: `scale_factor` can be overridden via `WINIT_X11_SCALE_FACTOR` environment variable,
|
// Note: `scale_factor` can be overridden via `WINIT_X11_SCALE_FACTOR` environment variable,
|
||||||
// see: <https://docs.rs/winit/0.26.1/winit/window/struct.Window.html#method.scale_factor>
|
// see: <https://docs.rs/winit/0.26.1/winit/window/struct.Window.html#method.scale_factor>
|
||||||
//
|
//
|
||||||
window.scale_factor() as f32,
|
scale_factor,
|
||||||
egui::Rgba::TRANSPARENT,
|
egui::Rgba::TRANSPARENT,
|
||||||
&egui_paint_jobs,
|
&egui_paint_jobs,
|
||||||
&egui_output.textures_delta,
|
&egui_output.textures_delta,
|
||||||
|
@ -178,7 +178,7 @@ pub fn run(
|
|||||||
if let Err(err) = renderer.draw(
|
if let Err(err) = renderer.draw(
|
||||||
&camera,
|
&camera,
|
||||||
&mut draw_config,
|
&mut draw_config,
|
||||||
window.window(),
|
window.window().scale_factor() as f32,
|
||||||
&mut status,
|
&mut status,
|
||||||
egui_input,
|
egui_input,
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user