mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Simplify egui_winit::State (#3678)
By storing a clone of the egui context in it, we can be sure to always use the correct `pixels_per_point`
This commit is contained in:
@@ -235,7 +235,7 @@ fn main() {
|
||||
gl_window.resize(**new_inner_size);
|
||||
}
|
||||
|
||||
let event_response = egui_glow.on_window_event(&event);
|
||||
let event_response = egui_glow.on_window_event(gl_window.window(), &event);
|
||||
|
||||
if event_response.repaint {
|
||||
gl_window.window().request_redraw();
|
||||
|
||||
Reference in New Issue
Block a user