Setting UI scale factor according to system pixel density

This commit is contained in:
RobotCritter 2022-07-19 20:12:35 -07:00
parent 6c2ed8b6b8
commit e8c6dd61f9
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ impl Application {
let screen_desc = egui_wgpu_backend::ScreenDescriptor {
physical_width: self.config.width,
physical_height: self.config.height,
scale_factor: 1.0, // TODO ???
scale_factor: self.egui_ctx.pixels_per_point(),
};
self.egui_rp