From aa2cfe78d0ca8a45d596880d9b8e5de277c40dfb Mon Sep 17 00:00:00 2001 From: qwqVictor Date: Tue, 29 Aug 2023 23:07:57 +0800 Subject: [PATCH] fix(webrdp): add canvas bleed --- webrdp/src/rdp_ws/rdp_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrdp/src/rdp_ws/rdp_client.rs b/webrdp/src/rdp_ws/rdp_client.rs index 9f75696..bcdee53 100644 --- a/webrdp/src/rdp_ws/rdp_client.rs +++ b/webrdp/src/rdp_ws/rdp_client.rs @@ -31,8 +31,8 @@ impl Rdp { .body() .unwrap(); - let height = body.client_height() as u16; - let width = body.client_width() as u16; + let height = (body.client_height() as f32 * 0.99) as u16; + let width = (body.client_width() - 40) as u16; Self { url: url.to_owned(), username: username.to_owned(),