remove defer

This commit is contained in:
Lily Tsuru 2024-08-04 04:42:38 -04:00
parent 18b30f2148
commit 1624810e55

View file

@ -57,7 +57,7 @@ impl RfbServer {
buttons: [false; 32],
});
// Disable the normal libvnc cursor
// Disable the normal libvnc cursor (it's annoying)
(*screen).cursor = std::ptr::null_mut();
(*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).kbdAddEvent = Some(Self::on_key_callback);
// testing
(*screen).port = config.listen_port as i32;
(*screen).ipv6port = 0;
(*screen).deferUpdateTime = 16;
ret.resize(config.width, config.height);