Skip to content

steamcompmgr: consistently use the texture dimensions to write a screenshot to file#2181

Open
oSoMoN wants to merge 1 commit into
ValveSoftware:masterfrom
oSoMoN:steamcompmgr-png-screenshot-save-with-correct-dimensions
Open

steamcompmgr: consistently use the texture dimensions to write a screenshot to file#2181
oSoMoN wants to merge 1 commit into
ValveSoftware:masterfrom
oSoMoN:steamcompmgr-png-screenshot-save-with-correct-dimensions

Conversation

@oSoMoN
Copy link
Copy Markdown

@oSoMoN oSoMoN commented May 15, 2026

The PNG code path applied some post-processing and incorrectly used currentOutputWidth and currentOutputHeight which are global variables that paint_pipewire() temporarily modifies with the stream's dimensions and then restores.

When requesting a PNG screenshot while a screen capture was ongoing at a different (lower) resolution, the output image would have the dimensions of the video capture.

…enshot to file

The PNG code path applied some post-processing and incorrectly used
currentOutputWidth and currentOutputHeight which are global variables that
paint_pipewire() temporarily modifies with the stream's dimensions and then
restores.

When requesting a PNG screenshot while a screen capture was ongoing at a
different (lower) resolution, the output image would have the dimensions of the
video capture.
@oSoMoN oSoMoN force-pushed the steamcompmgr-png-screenshot-save-with-correct-dimensions branch from 0cb1530 to 4d9f448 Compare May 16, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant