1
0
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:
Emil Ernerfeldt
2023-12-05 11:45:25 +01:00
committed by GitHub
parent 80d7143b15
commit a4e389431d
6 changed files with 70 additions and 84 deletions

View File

@@ -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();