Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 dpi aware ,record windows calcuration windows rect error. #81

Open
baluoteliz opened this issue Jun 9, 2020 · 5 comments
Open
Labels

Comments

@baluoteliz
Copy link

1.dpi 125% other process call screen_capture_lite.dll
GetwindowRect is origin size 130,17,1410,777 [1280,760]
DwmGetWindowAttribute get bounds 163,21,1763,971 [1600,950]

2.dpi 125% self process call screen_capture_lite.lib
GetWindowRect equal to DwmGetWindowAttribute

both two situation
BitBlt(CaptureDC.DC, left, top, ret.right - ret.left, ret.bottom - ret.top, MonitorDC.DC, 0, 0, SRCCOPY
here should ret.right - ret.left ; ret.bottom-ret.top

here is the source code. link below :
https://github.com/AVSolution/record_capture_lite_dynamic
if there is a problem, please point it out.
Thanks.

@smasherprog
Copy link
Owner

Submit a Pull request and ill merge it into master

@smasherprog
Copy link
Owner

Do you happen to have a PR on this? I see theres alot of code in that repo and I like how you used the same design to capture audio/microphone data btw..

@baluoteliz
Copy link
Author

baluoteliz commented Jun 16, 2020 via email

@smasherprog
Copy link
Owner

Can you create a pull request on the broken code so it can be fixed? If not i like to close these issues

@baluoteliz
Copy link
Author

baluoteliz commented Jun 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants