mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 11:33:06 +00:00
964b047466
# Objective - Trying to make it possible to do write tests that don't require a raw window handle. - Fixes https://github.com/bevyengine/bevy/issues/6106. ## Solution - Make the interface and type changes. Avoid accessing `None`. --- ## Changelog - Converted `raw_window_handle` field in both `Window` and `ExtractedWindow` to `Option<RawWindowHandleWrapper>`. - Revised accessor function `Window::raw_window_handle()` to return `Option<RawWindowHandleWrapper>`. - Skip conditions in loops that would require a raw window handle (to create a `Surface`, for example). ## Migration Guide `Window::raw_window_handle()` now returns `Option<RawWindowHandleWrapper>`. Co-authored-by: targrub <62773321+targrub@users.noreply.github.com> |
||
---|---|---|
.. | ||
cursor.rs | ||
event.rs | ||
lib.rs | ||
raw_window_handle.rs | ||
system.rs | ||
window.rs | ||
windows.rs |