Update main.rs
This commit is contained in:
parent
d7ce852b23
commit
16e4f66f78
@ -68,8 +68,7 @@ fn register_platform_plugins(app: &mut App) {
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
info!("Adding macOS-specific plugins");
|
||||
app.add_plugins(DefaultPlugins)
|
||||
.set(WindowPlugin {
|
||||
app.add_plugins(DefaultPlugins.set(WindowPlugin {
|
||||
primary_window: Some(Window {
|
||||
title: crate::TITLE.to_string(), // Window title
|
||||
resolution: crate::RESOLUTION.into(), // Initial resolution (width x height)
|
||||
@ -77,10 +76,9 @@ fn register_platform_plugins(app: &mut App) {
|
||||
decorations: crate::DECORATIONS, // Enable window decorations
|
||||
transparent: crate::TRANSPARENT, // Opaque background
|
||||
present_mode: crate::PRESENT_MODE, // VSync mode
|
||||
..default() }),
|
||||
..default()
|
||||
}),
|
||||
..default()
|
||||
});
|
||||
}));
|
||||
}
|
||||
}
|
||||
fn should_display_inspector(inspector_visible: Res<InspectorVisible>) -> bool {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user