17cupsofcoffee / tetra

🎮 A simple 2D game framework written in Rust
MIT License
907 stars 63 forks source link

Window is always fullscreen on Windows #340

Open aakodadi opened 1 year ago

aakodadi commented 1 year ago

Summary

Works fine on Linux but on Windows, the window is in fullscreen mode even when I try to override that with the ContextBuilder.

    ContextBuilder::new(
        camera_info.human_name(),
        WINDOW_WIDTH.try_into().unwrap(),
        WINDOW_HEIGHT.try_into().unwrap(),
    )
    .fps_limit(false)
    .show_mouse(true)
    .resizable(true)
    .fullscreen(false) // It should be false by default
    .build()?
    .run(|_| Ok(StateWrapper::new(state)))

Steps to Reproduce

Run it on windows.

Additional Info

No response

17cupsofcoffee commented 1 year ago

I can't replicate this issue on my Windows machine - does it happen if you run the examples in this repo?

aakodadi commented 1 year ago

Hi @17cupsofcoffee ,

It happens with code that is similar to this.