mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
refact: texture render as an option (#8168)
* refact: texture render as an option Signed-off-by: fufesou <linlong1266@gmail.com> * refact: texture render, translation Signed-off-by: fufesou <linlong1266@gmail.com> * refact: texture render as option Signed-off-by: fufesou <linlong1266@gmail.com> * Update ui_interface.rs --------- Signed-off-by: fufesou <linlong1266@gmail.com> Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
This commit is contained in:
@@ -843,6 +843,9 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
.on_voice_call_closed("Closed manually by the peer");
|
||||
allow_err!(peer.send(&msg).await);
|
||||
}
|
||||
Data::ResetDecoder(display) => {
|
||||
self.video_sender.send(MediaData::Reset(display)).ok();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
true
|
||||
@@ -1371,7 +1374,7 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
Some(misc::Union::SwitchDisplay(s)) => {
|
||||
self.handler.handle_peer_switch_display(&s);
|
||||
self.video_sender
|
||||
.send(MediaData::Reset(s.display as _))
|
||||
.send(MediaData::Reset(Some(s.display as _)))
|
||||
.ok();
|
||||
if s.width > 0 && s.height > 0 {
|
||||
self.handler.set_display(
|
||||
|
||||
Reference in New Issue
Block a user