Skip to content

Commit

Permalink
Bump raw-window-handle to 0.5
Browse files Browse the repository at this point in the history
This matches the version used by winit 0.28.1.

Thanks to Mukilan Thiyagarajan.
  • Loading branch information
atomgardner committed Feb 20, 2023
1 parent 3d3d312 commit 97f4604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions surfman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ version = "0.28.1"
optional = true

[dependencies.raw-window-handle]
version = "0.3.3"
version = "0.5"
optional = true

[dev-dependencies]
Expand Down Expand Up @@ -88,5 +88,5 @@ wio = "0.2"
winapi = { version = "0.3", features = ["d3d11", "wingdi", "winuser", "libloaderapi"] }

[target.'cfg(target_os = "android")'.dependencies]
"raw-window-handle" = "0.3.3"
raw-window-handle = "0.5"
winit = { version = "0.28.1", features = [ "android-native-activity" ] }
4 changes: 2 additions & 2 deletions surfman/src/platform/android/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ impl Connection {
window: &Window,
) -> Result<NativeWidget, Error> {
use raw_window_handle::HasRawWindowHandle;
use raw_window_handle::RawWindowHandle::Android;
use raw_window_handle::RawWindowHandle::AndroidNdk;
match window.raw_window_handle() {
Android(handle) => Ok(NativeWidget {
AndroidNdk(handle) => Ok(NativeWidget {
native_window: handle.a_native_window as *mut _,
}),
_ => Err(Error::IncompatibleNativeWidget),
Expand Down

0 comments on commit 97f4604

Please sign in to comment.