Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust
MIT License
2.65k stars 465 forks source link

Improve the UX of the Window interface. #1368

Closed iddm closed 5 months ago

iddm commented 5 months ago

Makes it clonable and removes the "unsafe" from the Window::from_ref method.

Addresses #1367

Cobrand commented 5 months ago

Thank you! I think this was made unsafe back in the day because the WindowContext could be obtained elsewhere in a safe way. It should be fine now though.

iddm commented 5 months ago

Thank you very much! Have a great day!