Skip to content

Commit 3c7e5b0

Browse files
committed
fix SurfaceId on Android
1 parent 691dd76 commit 3c7e5b0

File tree

1 file changed

+2
-2
lines changed
  • src/platform_impl/android

1 file changed

+2
-2
lines changed

src/platform_impl/android/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl Default for PlatformSpecificEventLoopAttributes {
124124
}
125125

126126
// Android currently only supports one window
127-
const GLOBAL_WINDOW: WindowId = WindowId::from_raw(0);
127+
const GLOBAL_WINDOW: SurfaceId = SurfaceId::from_raw(0);
128128

129129
impl EventLoop {
130130
pub(crate) fn new(
@@ -805,7 +805,7 @@ impl rwh_06::HasWindowHandle for Window {
805805
}
806806

807807
impl CoreSurface for Window {
808-
fn id(&self) -> WindowId {
808+
fn id(&self) -> SurfaceId {
809809
GLOBAL_WINDOW
810810
}
811811

0 commit comments

Comments
 (0)