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

Fractional scaling in Ubuntu 20.04 #202

Open
amadeok opened this issue Jun 6, 2021 · 0 comments
Open

Fractional scaling in Ubuntu 20.04 #202

amadeok opened this issue Jun 6, 2021 · 0 comments

Comments

@amadeok
Copy link

amadeok commented Jun 6, 2021

General information:

  • OS name: UBUNTU
  • OS version: 20.04
  • OS architecture: 64 bits
  • Resolutions:
    • Monitor 1: 1920x1080
    • Monitor 2: 2400x1650
  • Python version: 3.8.5
  • MSS version: 6.1.0

For GNU/Linux users:

  • Display server protocol and version, if known: Xorg
  • Desktop Environment: gnome
  • Composite Window Manager name and version: compizconfig 0.9.14.1 (but i don't use it much)

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

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

No branches or pull requests

2 participants