nannou-org / nannou

A Creative Coding Framework for Rust.
https://nannou.cc/
6.05k stars 307 forks source link

Leave default window dimensions to `winit` #905

Open mitchmindtree opened 1 year ago

mitchmindtree commented 1 year ago

Currently we specify some arbitrary, default dimensions for windows in nannou/src/window.rs.

I think the idea was to ensure consistency across different platforms, regardless of the platform's defaults. However, this can have issues in the case that the user uses a window tiling manager, or tries to run a sketch on mobile.

Instead, we should just use the defaults provided by the OS and allow the user to specify fixed dimensions if required.