Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v9] Fixes noisy-square distortions #19546

Merged
merged 6 commits into from
Dec 30, 2022
6 changes: 1 addition & 5 deletions lib/srv/desktop/rdp/rdpclient/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,11 +760,7 @@ impl TryFrom<BitmapEvent> for CGOBitmap {

// e.decompress consumes e, so we need to call it separately, after populating the fields
// above.
let mut data = if e.is_compress {
e.decompress()?
} else {
e.data
};
let mut data = e.decompress()?;
res.data_ptr = data.as_mut_ptr();
res.data_len = data.len();
res.data_cap = data.capacity();
Expand Down