From b71373b031afedbf659ced7190bfdf15ca7e197a Mon Sep 17 00:00:00 2001 From: trevyn <230691+trevyn@users.noreply.github.com> Date: Fri, 27 Sep 2024 18:58:14 +0400 Subject: [PATCH] Fix egui demo zoom (#5) --- examples/egui_gui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/egui_gui.rs b/examples/egui_gui.rs index 0f9b258..2484240 100644 --- a/examples/egui_gui.rs +++ b/examples/egui_gui.rs @@ -129,12 +129,12 @@ fn render_egui( let FullOutput { shapes, textures_delta, + pixels_per_point, .. } = egui_ctx.run(raw_input, |egui_ctx| { // Ui content ui_app.ui(egui_ctx); }); - let pixels_per_point = window.window().scale_factor() as f32; // creates triangles to paint let clipped_primitives = egui_ctx.tessellate(shapes, pixels_per_point);