From 4aaaa2e287dfa8aecb2502bee10e931e5bd17f1d Mon Sep 17 00:00:00 2001 From: Billy Messenger Date: Wed, 21 Sep 2022 18:25:03 -0500 Subject: [PATCH] actually use the scale factor --- src/window.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/window.rs b/src/window.rs index e699db7..a94e804 100644 --- a/src/window.rs +++ b/src/window.rs @@ -75,7 +75,6 @@ where bg_color: Rgba, physical_width: u32, physical_height: u32, - pixels_per_point: f32, start_time: Instant, repaint_after: Option, mouse_pos: Option, @@ -108,7 +107,6 @@ where let egui_ctx = egui::Context::default(); - let pixels_per_point = scale; let egui_input = egui::RawInput { screen_rect: Some(Rect::from_min_size( Pos2::new(0f32, 0f32), @@ -165,7 +163,6 @@ where bg_color, physical_width, physical_height, - pixels_per_point, start_time: Instant::now(), repaint_after: Some(Instant::now()), mouse_pos: None, @@ -300,7 +297,7 @@ where self.bg_color, self.physical_width, self.physical_height, - self.pixels_per_point, + self.scale_factor, &mut self.egui_ctx, &mut shapes, &mut textures_delta,