Skip to content

Commit

Permalink
Simplify arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 11, 2023
1 parent 2a554dd commit 3d6ca6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/eframe/src/native/epi_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ impl EpiIntegration {
let saved_memory: egui::Memory = self.egui_ctx.memory(|mem| mem.clone());
self.egui_ctx
.memory_mut(|mem| mem.set_everything_is_visible(true));
let full_output = self.update(app, window, egui_winit, &None, ViewportIdPair::ROOT);
let full_output = self.update(app, window, egui_winit, None, ViewportIdPair::ROOT);
self.pending_full_output.append(full_output); // Handle it next frame
self.egui_ctx.memory_mut(|mem| *mem = saved_memory); // We don't want to remember that windows were huge.
self.egui_ctx.clear_animations();
Expand Down Expand Up @@ -483,7 +483,7 @@ impl EpiIntegration {
app: &mut dyn epi::App,
window: &winit::window::Window,
egui_winit: &mut egui_winit::State,
viewport_ui_cb: &Option<Arc<ViewportUiCallback>>,
viewport_ui_cb: Option<&ViewportUiCallback>,
id_pair: ViewportIdPair,
) -> egui::FullOutput {
let frame_start = std::time::Instant::now();
Expand Down
4 changes: 2 additions & 2 deletions crates/eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ mod glow_integration {
app.as_mut(),
&window,
egui_winit,
&viewport.viewport_ui_cb.clone(),
viewport.viewport_ui_cb.as_deref(),
viewport.id_pair,
);

Expand Down Expand Up @@ -2425,7 +2425,7 @@ mod wgpu_integration {
app.as_mut(),
&window.borrow(),
state.borrow_mut().as_mut().unwrap(),
&viewport_ui_cb.clone(),
viewport_ui_cb.as_deref(),
ViewportIdPair {
this: viewport_id,
parent: parent_id,
Expand Down

0 comments on commit 3d6ca6c

Please sign in to comment.