mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Fix : In Windows, the 'egui_demo_app' screen does not appear. (#4410)
* Related #4337 * Closes #4409 Fix : In Windows, the 'egui_demo_app' screen does not appear After the #4337 update. --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -20,10 +20,9 @@ pub fn viewport_builder<E>(
|
|||||||
|
|
||||||
let mut viewport_builder = native_options.viewport.clone();
|
let mut viewport_builder = native_options.viewport.clone();
|
||||||
|
|
||||||
let clamp_size_to_monitor_size = viewport_builder.clamp_size_to_monitor_size.unwrap_or(
|
// On some Linux systems, a window size larger than the monitor causes crashes,
|
||||||
// On some Linux systems, a window size larger than the monitor causes crashes
|
// and on Windows the window does not appear at all.
|
||||||
cfg!(target_os = "linux"),
|
let clamp_size_to_monitor_size = viewport_builder.clamp_size_to_monitor_size.unwrap_or(true);
|
||||||
);
|
|
||||||
|
|
||||||
// Always use the default window size / position on iOS. Trying to restore the previous position
|
// Always use the default window size / position on iOS. Trying to restore the previous position
|
||||||
// causes the window to be shown too small.
|
// causes the window to be shown too small.
|
||||||
|
|||||||
Reference in New Issue
Block a user