mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-27 03:56:33 +11:00
Android: Window::config
now initially returns accurate data. (#2021)
Initialize Android's static 'CONFIG' from NativeActivity's Asset Manager
This commit is contained in:
parent
5f24c40d05
commit
805249e27e
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On Android, fixed `WindowExtAndroid::config` initially returning an empty `Configuration`.
|
||||||
|
- On Android, fixed `Window::scale_factor` and `MonitorHandle::scale_factor` initially always returning 1.0.
|
||||||
- On X11, select an appropriate visual for transparency if is requested
|
- On X11, select an appropriate visual for transparency if is requested
|
||||||
- On Wayland and X11, fix diagonal window resize cursor orientation.
|
- On Wayland and X11, fix diagonal window resize cursor orientation.
|
||||||
- On macOS, drop the event callback before exiting.
|
- On macOS, drop the event callback before exiting.
|
||||||
|
|
|
@ -19,7 +19,9 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref CONFIG: RwLock<Configuration> = RwLock::new(Configuration::new());
|
static ref CONFIG: RwLock<Configuration> = RwLock::new(Configuration::from_asset_manager(
|
||||||
|
&ndk_glue::native_activity().asset_manager()
|
||||||
|
));
|
||||||
// If this is `Some()` a `Poll::Wake` is considered an `EventSource::Internal` with the event
|
// If this is `Some()` a `Poll::Wake` is considered an `EventSource::Internal` with the event
|
||||||
// contained in the `Option`. The event is moved outside of the `Option` replacing it with a
|
// contained in the `Option`. The event is moved outside of the `Option` replacing it with a
|
||||||
// `None`.
|
// `None`.
|
||||||
|
|
Loading…
Add table
Reference in a new issue