Skip to content

Commit

Permalink
Fix egui demo zoom (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn authored Sep 27, 2024
1 parent 23f8698 commit b71373b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/egui_gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b71373b

Please sign in to comment.