question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A high-DPI display isn't detected correctly in Windows 10

See original GitHub issue

General informations:

  • OS name: Windows 10
  • OS version: 10.0.15063
  • OS architecture: 64 bits
  • Result of the platform.uname(): uname_result(system=‘Windows’, node=‘DESKTOP-GTK56RF’, release=‘10’, version=‘10.0.15063’, machine=‘AMD64’, processor=‘Intel64 Family 6 Model 94 Stepping 3, GenuineIntel’)
  • Result of the command python --version: Python 3.6.1 (MSC v.1900 32 bit (Intel)0)

Description of the warning/error

A high-DPI display isn’t detected correctly in Windows 10.

Full message

Windows 10 allows scaling UI elements. My pc has the scaling size 125% and the resolution 1920x1080. But mmscan’t detect the monitor with these settings correctly:

>>> from mss import mss
>>> sct = mss()
>>> sct.monitors
[{'height': 864, 'left': 0, 'top': 0, 'width': 1536},
 {'height': 864, 'left': 0, 'top': 0, 'width': 1536}]

When I change the scaling size to 100%, mms works fine.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fraerasercommented, Sep 1, 2017

Hello I’ve just tested last mss version from dev On W10, with an upscaled UI at 125%, everything is fine, but if I set 150% or more, the bottom and right sides are still cropped 😦

1reaction
andrei-shabanskicommented, Aug 12, 2017

It looks good! https://cl.ly/lz5L

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows scaling issues for high-DPI devices - Microsoft Support
Right-click the application, select Properties, select the Compatibility tab, and then select the Disable display scaling on high DPI settings check box.
Read more >
How to Fix Windows 10 Display Size and Resolution Issues
Getting a display to work correctly depends on three components: the graphics card, the display cable, and the display itself. ... In short,...
Read more >
6 Common Windows Screen Resolution Issues and Fixes
1. Incorrect Resolution Settings ... Resolution can often change by itself on Windows because of a corrupted graphics driver or a conflicting ...
Read more >
How to Adjust High-DPI Scaling in Windows 10 | Digital Trends
1. Click the Notification icon on the Taskbar and select the All Settings tile in the Action Center. Alternatively, click the Start button...
Read more >
The most common multi-monitor problems and how to fix them
Windows 10 Change Display Resolution. If you add a new, higher-resolution monitor to your system and find that it's not displaying correctly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found