BoboTiG / python-mss

An ultra fast cross-platform multiple screenshots module in pure Python using ctypes.
https://pypi.org/project/mss/
MIT License
1.01k stars 93 forks source link

Fractional scaling in Ubuntu 20.04 #202

Open amadeok opened 3 years ago

amadeok commented 3 years ago

General information:

For GNU/Linux users:

Description of the warning/error

I have 2 displays side by side, Monitor 1: 1920x1080 on the left and Monitor 2: 2400x1650 on the right. I call sct_img = sct.grab({"top": 0, "left": 1920, "width": 1200, "height": 825}) to capture monitor 2, and it works fine, but when i enable fractional scaling from the display configuration window causes the following: -the screen capture no longer starts capturing 1920 pixels from the left, and instead starts capturing 960pixels from the left. -even though i capture 1200x825 pixels (half of 2400x1650) the image capture does not correspond to the quarter area of monitor 2, but instead to less than that.

Is there any way to fix this? thanks

Upvote & Fund

Fund with Polar