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

fix: fix scale_factor #685

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

fix: fix scale_factor #685

wants to merge 3 commits into from

Conversation

zrr1999
Copy link

@zrr1999 zrr1999 commented Jan 29, 2024

8dc98cc51c343d73385eb152d5afaed1
83adeeff77d98c3288ebe5ddbe218455

当使用有多个屏幕的mac时,pot选择当前鼠标所在屏幕进行截图,但是目前的鼠标位置是实际分辨率(也就是设置中显示的),而monitor获取到的位置和尺寸是绝对分辨率(也就是使用系统缩放前默认的分辨率)。
2607965f336226591adf5581db262f0d

本 PR 修改后在双屏下表现良好。

@zrr1999 zrr1999 changed the title Fix scale fix: fix scale_factor Jan 29, 2024
@zrr1999
Copy link
Author

zrr1999 commented Jan 29, 2024

image screenshot 也存在类似的问题

@Pylogmon
Copy link
Member

问题好像没这么简单,你试试我最新的commit?在Windows下是正常的

@Pylogmon
Copy link
Member

另外你的代码还没有考虑分数缩放

@zrr1999
Copy link
Author

zrr1999 commented Jan 30, 2024

问题好像没这么简单,你试试我最新的commit?在Windows下是正常的

刚刚试了下,确实解决了,另外问一下后续有没有计划支持一下鼠标移动到另一个屏幕,截图对应的屏幕也变成另一个屏幕,我的一些截图软件基本上都支持这个功能了

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