[PR #656] [MERGED] Excluding CaptureBlt flag on RDP session #1170

Closed
opened 2026-02-26 09:33:53 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NickeManarin/ScreenToGif/pull/656
Author: @pr8x
Created: 5/18/2020
Status: Merged
Merged: 5/30/2020
Merged by: @NickeManarin

Base: masterHead: hotfix-rdp-jitter


📝 Commits (1)

  • 168dae0 Excluding CaptureBlt flag on RDP session

📊 Changes

1 file changed (+17 additions, -3 deletions)

View changed files

📝 ScreenToGif/Util/Capture/ImageCapture.cs (+17 -3)

📄 Description

This PR fixes the mouse jittering when recording over RDP.

From the docs:

CaptureBlt: Windows that are layered on top of your window are included in the resulting image. By default, the image contains only your window. Note that this generally cannot be used for printing device contexts.

Now I don't really know how a RDP device context is treated internally, but a lot of code samples I saw online treat printing and RDP context the same way. The downside of this approach is that we don't get support for recording layered windows anymore over RDP. But it's certainly better than the jittering we had before. Cheers.

Fixes https://github.com/NickeManarin/ScreenToGif/issues/622


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/NickeManarin/ScreenToGif/pull/656 **Author:** [@pr8x](https://github.com/pr8x) **Created:** 5/18/2020 **Status:** ✅ Merged **Merged:** 5/30/2020 **Merged by:** [@NickeManarin](https://github.com/NickeManarin) **Base:** `master` ← **Head:** `hotfix-rdp-jitter` --- ### 📝 Commits (1) - [`168dae0`](https://github.com/NickeManarin/ScreenToGif/commit/168dae0296b454c924a08850d46559e6200422b9) Excluding CaptureBlt flag on RDP session ### 📊 Changes **1 file changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `ScreenToGif/Util/Capture/ImageCapture.cs` (+17 -3) </details> ### 📄 Description This PR fixes the mouse jittering when recording over RDP. From the docs: > CaptureBlt: Windows that are layered on top of your window are included in the resulting image. By default, the image contains only your window. **Note that this generally cannot be used for printing device contexts**. Now I don't really know how a RDP device context is treated internally, but a lot of code samples I saw online treat printing and RDP context the same way. The downside of this approach is that we don't get support for recording layered windows anymore over RDP. But it's certainly better than the jittering we had before. Cheers. Fixes https://github.com/NickeManarin/ScreenToGif/issues/622 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 09:33:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#1170
No description provided.