Skip to content

Commit

Permalink
Fixes noisy-square distortions (#19506)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibeckermayer committed Dec 30, 2022
1 parent f7679a8 commit befa110
Showing 1 changed file with 1 addition and 5 deletions.
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

0 comments on commit befa110

Please sign in to comment.