remove defer
This commit is contained in:
parent
18b30f2148
commit
1624810e55
1 changed files with 1 additions and 4 deletions
|
@ -57,7 +57,7 @@ impl RfbServer {
|
||||||
buttons: [false; 32],
|
buttons: [false; 32],
|
||||||
});
|
});
|
||||||
|
|
||||||
// Disable the normal libvnc cursor
|
// Disable the normal libvnc cursor (it's annoying)
|
||||||
(*screen).cursor = std::ptr::null_mut();
|
(*screen).cursor = std::ptr::null_mut();
|
||||||
|
|
||||||
(*screen).screenData = ((&mut *ret) as *mut RfbServer) as *mut std::ffi::c_void;
|
(*screen).screenData = ((&mut *ret) as *mut RfbServer) as *mut std::ffi::c_void;
|
||||||
|
@ -66,11 +66,8 @@ impl RfbServer {
|
||||||
(*screen).newClientHook = Some(Self::connection_callback);
|
(*screen).newClientHook = Some(Self::connection_callback);
|
||||||
(*screen).kbdAddEvent = Some(Self::on_key_callback);
|
(*screen).kbdAddEvent = Some(Self::on_key_callback);
|
||||||
|
|
||||||
|
|
||||||
// testing
|
|
||||||
(*screen).port = config.listen_port as i32;
|
(*screen).port = config.listen_port as i32;
|
||||||
(*screen).ipv6port = 0;
|
(*screen).ipv6port = 0;
|
||||||
(*screen).deferUpdateTime = 16;
|
|
||||||
|
|
||||||
ret.resize(config.width, config.height);
|
ret.resize(config.width, config.height);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue