mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
glutin: Simplify set_nested_event_loop_listener.
This commit is contained in:
parent
ed87fcf6cf
commit
f10e3765b1
1 changed files with 3 additions and 6 deletions
|
@ -303,15 +303,12 @@ impl Window {
|
|||
|
||||
fn nested_window_resize(width: u32, height: u32) {
|
||||
unsafe {
|
||||
match G_NESTED_EVENT_LOOP_LISTENER {
|
||||
None => {}
|
||||
Some(listener) => {
|
||||
if let Some(listener) = G_NESTED_EVENT_LOOP_LISTENER {
|
||||
(*listener).handle_event_from_nested_event_loop(
|
||||
WindowEvent::Resize(TypedSize2D::new(width, height)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_arch = "arm", target_arch = "aarch64")))]
|
||||
fn gl_version() -> GlRequest {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue