Skip to content

Commit

Permalink
actually use the scale factor
Browse files Browse the repository at this point in the history
  • Loading branch information
Billy Messenger authored and Billy Messenger committed Sep 21, 2022
1 parent adc647c commit 4aaaa2e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ where
bg_color: Rgba,
physical_width: u32,
physical_height: u32,
pixels_per_point: f32,
start_time: Instant,
repaint_after: Option<Instant>,
mouse_pos: Option<Pos2>,
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4aaaa2e

Please sign in to comment.