fix(session): preserve bitmap source stride - #1486
Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intoJul 30, 2026
Merged
Conversation
Keep bitmap source dimensions independent from destination bounds across raw, RLE, and RDP6 updates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot started reviewing on behalf of
Marc-André Moreau (mamoreau-devolutions)
July 30, 2026 17:46
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Preserves bitmap source stride and correct row orientation across raw, RLE, and RDP6 updates.
Changes:
- Separates source stride from cropped destination dimensions.
- Removes raw scanline padding safely.
- Adds stride and orientation regression tests.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
crates/ironrdp-session/src/image.rs |
Applies explicit source stride and destination cropping. |
crates/ironrdp-session/src/fast_path.rs |
Propagates bitmap dimensions and handles padding/orientation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
irvingouj@Devolutions (irvingoujAtDevolution)
approved these changes
Jul 30, 2026
irvingouj@Devolutions (irvingoujAtDevolution)
left a comment
Contributor
There was a problem hiding this comment.
LGTM
Marc-André Moreau (mamoreau-devolutions)
merged commit Jul 30, 2026
80bb81b
into
master
23 checks passed
Marc-André Moreau (mamoreau-devolutions)
deleted the
copilot/consolidate-bitmap-stride-fixes
branch
July 30, 2026 18:25
This was referenced Jul 30, 2026
This was referenced Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TS_BITMAP_DATAsource stride independently of destination bounds for raw, Interleaved RLE, and RDP6 bitmap updates.Why this supersedes the overlapping proposals
Specification basis
TS_BITMAP_DATA): separate destination bounds, dimensions, and bottom-up raw rows with 4-byte row padding.Validation
cargo test -p ironrdp-session --libcargo check -p ironrdp-session --all-featurescargo clippy -p ironrdp-session --all-targets -- -D warningscargo xtask check fmt -v