Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Context::request_repaint_after #1694

Merged
emilk:master from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
coderedart committed Jun 20, 2022
commit 1229a707d88a1be254da15c04c9c135be25fed4e
2 changes: 1 addition & 1 deletion eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ pub fn run_wgpu(
}
winit::event::Event::UserEvent(RequestRepaintEvent) => window.request_redraw(),
winit::event::Event::NewEvents(winit::event::StartCause::ResumeTimeReached {
..
..
}) => {
window.request_redraw();
}
Expand Down
4 changes: 2 additions & 2 deletions egui_glium/examples/native_texture.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release

use glium::glutin;
use egui_winit::winit;
use glium::glutin;

fn main() {
let event_loop = glutin::event_loop::EventLoop::with_user_event();
Expand Down Expand Up @@ -91,7 +91,7 @@ fn main() {
display.gl_window().window().request_redraw(); // TODO(emilk): ask egui if the events warrants a repaint instead
}
glutin::event::Event::NewEvents(glutin::event::StartCause::ResumeTimeReached {
..
..
}) => {
window.request_redraw();
}
Expand Down
4 changes: 2 additions & 2 deletions egui_glium/examples/pure_glium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ fn main() {
display.gl_window().window().request_redraw(); // TODO(emilk): ask egui if the events warrants a repaint instead
}
glutin::event::Event::NewEvents(glutin::event::StartCause::ResumeTimeReached {
..
}) => {
..
}) => {
window.request_redraw();
}
_ => (),
Expand Down
4 changes: 2 additions & 2 deletions egui_glow/examples/pure_glow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ fn main() {
egui_glow.destroy();
}
glutin::event::Event::NewEvents(glutin::event::StartCause::ResumeTimeReached {
..
}) => {
..
}) => {
gl_window..window().request_redraw();
}

Expand Down