8000 cfg-gate Android-only set_or_replace_display by benface · Pull Request #645 · not-fl3/miniquad · GitHub
[go: up one dir, main page]

Skip to content

Uh oh!

There was an error while loading. Please reload this page.

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ fn set_display(display: native::NativeDisplayData) {
}
/// This for now is Android specific since the process can continue running but the display
/// is restarted. We support reinitializing the display.
#[cfg(target_os = "android")]
fn set_or_replace_display(display: native::NativeDisplayData) {
if let Some(m) = NATIVE_DISPLAY.get() {
// Replace existing display
Expand Down
Loading
0