Skip to content

Commit

Permalink
Final touch-ups of glow code
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 14, 2023
1 parent 4aefb26 commit 17614cd
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 75 deletions.
5 changes: 4 additions & 1 deletion crates/eframe/src/native/epi_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ impl EpiIntegration {
window: &winit::window::Window,
event_loop_proxy: winit::event_loop::EventLoopProxy<E>,
) {
crate::profile_function!();

let egui_ctx = self.egui_ctx.clone();
egui_winit.init_accesskit(window, event_loop_proxy, move || {
// This function is called when an accessibility client
Expand Down Expand Up @@ -549,14 +551,15 @@ impl EpiIntegration {
}

pub fn post_rendering(&mut self, app: &mut dyn epi::App, window: &winit::window::Window) {
crate::profile_function!();
let inner_size = window.inner_size();
let window_size_px = [inner_size.width, inner_size.height];

app.post_rendering(window_size_px, &self.frame);
}

pub fn post_present(&mut self, window: &winit::window::Window) {
if let Some(visible) = self.frame.output.visible.take() {
crate::profile_scope!("window.set_visible");
window.set_visible(visible);
}
}
Expand Down
Loading

0 comments on commit 17614cd

Please sign in to comment.