Skip to content

Conversation

zcanann
Copy link

@zcanann zcanann commented Dec 31, 2024

GetWindowRect() includes window drop shadows, which can cause attempts to screen capture outside of window boundaries, resulting in black bars

DwmGetWindowAttribute is more accurate, including the window frame, but nothing outside the window bounds.

@Brendonovich
Copy link
Member

DwmGetWindowAttribute does seem to be more accurate but apparently doesn't include DPI scaling like GetWindowRect, we'll have to make them equivalent before using this different API.

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.

2 participants