Setting UI scale factor according to system pixel density
This commit is contained in:
parent
6c2ed8b6b8
commit
e8c6dd61f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue