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:
parent
28a5feef28
commit
c03ef852a4
3 changed files with 27 additions and 6 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue