From 3c7e5b00275d85f79cde6c3de35c14f43a0667a3 Mon Sep 17 00:00:00 2001 From: jgcodes2020 Date: Mon, 21 Oct 2024 19:42:58 -0400 Subject: [PATCH] fix SurfaceId on Android --- src/platform_impl/android/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform_impl/android/mod.rs b/src/platform_impl/android/mod.rs index 9387834d40..f60f74cfff 100644 --- a/src/platform_impl/android/mod.rs +++ b/src/platform_impl/android/mod.rs @@ -124,7 +124,7 @@ impl Default for PlatformSpecificEventLoopAttributes { } // Android currently only supports one window -const GLOBAL_WINDOW: WindowId = WindowId::from_raw(0); +const GLOBAL_WINDOW: SurfaceId = SurfaceId::from_raw(0); impl EventLoop { pub(crate) fn new( @@ -805,7 +805,7 @@ impl rwh_06::HasWindowHandle for Window { } impl CoreSurface for Window { - fn id(&self) -> WindowId { + fn id(&self) -> SurfaceId { GLOBAL_WINDOW }