[GH-ISSUE #1408] [Bug] Recording wrong part of the screen for vertical monitor setup #1036

Open
opened 2026-02-26 09:33:21 +03:00 by kerem · 1 comment
Owner

Originally created by @mayzelf on GitHub (Aug 7, 2025).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1408

Originally assigned to: @NickeManarin on GitHub.

Describe the bug
When selecting an area on a vertical screen, the recorded images will be of a different section of the screen than the one being selected beforehand

To Reproduce
Steps to reproduce the behavior:

  1. Have your screen verticaly (for me it's my 2nd)
  2. Record a section on that screen
  3. view recorded images
  4. See error

Expected behavior
that the recorded images will show the same section as the one i selected with the area tool beforehand

Desktop (please complete the following information):

  • OS: [e.g. Windows 10] Win 11
  • Version [e.g. 2.35.2] 24H2

Let me know if more information is needed or steps for replication are unclear.

Originally created by @mayzelf on GitHub (Aug 7, 2025). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1408 Originally assigned to: @NickeManarin on GitHub. **Describe the bug** When selecting an area on a vertical screen, the recorded images will be of a different section of the screen than the one being selected beforehand **To Reproduce** Steps to reproduce the behavior: 1. Have your screen verticaly (for me it's my 2nd) 2. Record a section on that screen 3. view recorded images 4. See error **Expected behavior** that the recorded images will show the same section as the one i selected with the area tool beforehand **Desktop (please complete the following information):** - OS: [e.g. Windows 10] Win 11 - Version [e.g. 2.35.2] 24H2 Let me know if more information is needed or steps for replication are unclear.
Author
Owner

@fz0000 commented on GitHub (Aug 9, 2025):

Vertical orientation causes this issue, whether it's the first or second screen.

I guess you are using DirectX capture mode? As a workaround, you can tryBitBlt capture mode instead.

DirectX captures the GPU's raw framebuffer data before any display transformations. The GPU renders in its native coordinate system (typically landscape), and the final display orientation is applied later by the OS. So it will capture the unrotated content. See the image below:

Image

BitBlt captures the final display output, which is already adjusted for screen orientation. So the captured image will match what you see on screen (although slightly slower in performance)

<!-- gh-comment-id:3170540782 --> @fz0000 commented on GitHub (Aug 9, 2025): Vertical orientation causes this issue, whether it's the first or second screen. I guess you are using `DirectX` capture mode? As a workaround, you can try`BitBlt` capture mode instead. DirectX captures the GPU's raw framebuffer data before any display transformations. The GPU renders in its native coordinate system (typically landscape), and the final display orientation is applied later by the OS. So it will capture the unrotated content. See the image below: <img width="588" height="401" alt="Image" src="https://github.com/user-attachments/assets/db6559f0-9695-4b75-b1ec-2587118260e0" /> BitBlt captures the final display output, which is already adjusted for screen orientation. So the captured image will match what you see on screen (although slightly slower in performance)
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#1036
No description provided.