Skip to content

Commit

Permalink
fix SurfaceId on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcodes2020 committed Oct 21, 2024
1 parent 691dd76 commit 3c7e5b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform_impl/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -805,7 +805,7 @@ impl rwh_06::HasWindowHandle for Window {
}

impl CoreSurface for Window {
fn id(&self) -> WindowId {
fn id(&self) -> SurfaceId {
GLOBAL_WINDOW
}

Expand Down

0 comments on commit 3c7e5b0

Please sign in to comment.