Currently the initial window size is always 0 in width and height, this will lead to panics when calling buffer_mut() if the size wasn't set with resize() depending on the platform:
I would prefer if we make this consistent on all platforms. My current ideas:
- Require an initial size in
Surface::new().
- Set the initial size to the window size (don't know if that's possible on all platforms).
- Introduce a new error variant instead of panicking.
Currently leaning towards idea 1.
Currently the initial window size is always 0 in width and height, this will lead to panics when calling
buffer_mut()if the size wasn't set withresize()depending on the platform:present()orfetch()(Add a function for retrieving the window contents #104).I would prefer if we make this consistent on all platforms. My current ideas:
Surface::new().Currently leaning towards idea 1.