Skip to content

Commit

Permalink
Fix DPR issue after egui update
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed Feb 15, 2024
1 parent 1654588 commit d04c849
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/egui_gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ impl GUI {
device_pixel_ratio: f32,
callback: impl FnOnce(&egui::Context),
) -> bool {
self.egui_context
.set_pixels_per_point(device_pixel_ratio as f32);
self.viewport = viewport;
let egui_input = egui::RawInput {
screen_rect: Some(egui::Rect {
Expand Down

0 comments on commit d04c849

Please sign in to comment.