mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-01 09:59:19 +08:00
version-compatible original resolution
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
b6c402d2ca
commit
23784eddd3
@ -287,8 +287,10 @@ impl FlutterHandler {
|
||||
h.insert("width", d.width);
|
||||
h.insert("height", d.height);
|
||||
h.insert("cursor_embedded", if d.cursor_embedded { 1 } else { 0 });
|
||||
h.insert("original_width", d.original_resolution.width);
|
||||
h.insert("original_height", d.original_resolution.height);
|
||||
if let Some(original_resolution) = d.original_resolution.as_ref() {
|
||||
h.insert("original_width", original_resolution.width);
|
||||
h.insert("original_height", original_resolution.height);
|
||||
}
|
||||
msg_vec.push(h);
|
||||
}
|
||||
serde_json::ser::to_string(&msg_vec).unwrap_or("".to_owned())
|
||||
|
Loading…
Reference in New Issue
Block a user