Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Update for bevy 0.10 #9

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Conversation

TotalKrill
Copy link
Contributor

as title says

@TotalKrill
Copy link
Contributor Author

TotalKrill commented Mar 16, 2023

Although the things work, I found that actually skipping the entire crate for bevy 0.10.0 and instead using this: ItsDoot/bevy@19e493f

app
  .insert_resource(WindowDescriptor {
    fit_canvas_to_parent: true,
    ..default()
  })

in bevy 0.10 that would be:

    app.add_plugins(DefaultPlugins.set(WindowPlugin {
        primary_window: Some(Window {
            present_mode: PresentMode::AutoNoVsync, // Reduces input lag.
            fit_canvas_to_parent: true,
            ..default()
        }),
        ..default()
    }))

And CSS:

html, body {
    margin: 0;
    height: 100%;
}

achieves the same thing, without this plugin. Im gonna leave this pull request here though, but yeah, I assume that the bevy_web_fullscreen plugin should actually be deprecated.

Thank you for creating it though, it helped alot until it was implemented in bevy natively :)

@ostwilkens
Copy link
Owner

That's great news, thanks!

@ostwilkens ostwilkens merged commit c04bde5 into ostwilkens:master Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants