Temporarily use egui's system scale factor
Until we support HiDPI ourselves. This fixes #1.
This commit is contained in:
parent
9d137fe813
commit
b40c43a862
|
@ -98,9 +98,10 @@ where
|
||||||
WindowOpenOptions {
|
WindowOpenOptions {
|
||||||
title: String::from("egui window"),
|
title: String::from("egui window"),
|
||||||
size: Size::new(width as f64, height as f64),
|
size: Size::new(width as f64, height as f64),
|
||||||
// TODO: What happens when we use the system scale factor here? I'd assume this
|
// TODO: Implement the plugin-specific DPI scaling APIs with a method on the
|
||||||
// would work everywhere, even if the window may be tiny in some cases.
|
// `GuiContext` when baseview gets window resizing. For some reason passing
|
||||||
scale: WindowScalePolicy::ScaleFactor(1.0),
|
// 1.0 here causes the UI to be scaled on macOS but not the mouse events.
|
||||||
|
scale: WindowScalePolicy::SystemScaleFactor,
|
||||||
gl_config: Some(GlConfig {
|
gl_config: Some(GlConfig {
|
||||||
version: (3, 2),
|
version: (3, 2),
|
||||||
red_bits: 8,
|
red_bits: 8,
|
||||||
|
|
Loading…
Reference in a new issue