Fix surrogate pair handling on Windows (#1165)

* Fix surrogate pair handling on Windows

* Change high_surrogate to Option<u16>

* Format
This commit is contained in:
Osspial 2019-09-15 22:09:08 -04:00 committed by GitHub
parent 28a5feef28
commit c03ef852a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 6 deletions

View file

@ -32,6 +32,7 @@ pub struct WindowState {
/// Used to supress duplicate redraw attempts when calling `request_redraw` multiple
/// times in `EventsCleared`.
pub queued_out_of_band_redraw: bool,
pub high_surrogate: Option<u16>,
window_flags: WindowFlags,
}
@ -114,6 +115,7 @@ impl WindowState {
fullscreen: None,
queued_out_of_band_redraw: false,
high_surrogate: None,
window_flags: WindowFlags::empty(),
}
}