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.

Inaccurate Screen Resolution When Scale Is Over 100%

See original GitHub issue

Describe the bug incorrect screen resolution being returned by graphics() when windows scale setting is over 100%.

To Reproduce Steps to reproduce the behavior:

  1. go to display settings and set scale over 100% image

  2. open power shell and get your screen resolution by typing in the following command wmic path win32_VideoController get /value image

  3. now, call the graphics() class and get the displays. notice that the resolution is incorrect. image

  4. go back to windows settings and set the scale to 100% and call graphics() to get the displays. Notice the resolution is correct: image

Expected behavior I expected the resolution to be my actual resolution: 2160 x 3840 but that is not the case.

Environment (please complete the following information):

  • systeminformation package version:
  • OS: Windows 10
  • Hardware: Dell xps 15 with 4k touch screen

Additional context Add any other context about the problem here. I have a 4k screen so my scale settings is on 250%: image

when scale is set to over 100% that is when I get the incorrect resolution sent back from graphics(): image

when i set scale to 100%, the correct resolution is returned: image

I know getting the correct screen resolution when scale is set to 250% or over is possible because here is what I get when I run this command wmic path win32_VideoController get /value image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:29 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
sebhildebrandtcommented, Oct 18, 2019

@m-henderson … Thank you for reporting. Will provide a solution later this day.

0reactions
m-hendersoncommented, Oct 21, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows scaling issues for high-DPI devices - Microsoft Support
Discusses Windows scaling issues for high-DPI devices. Provides resolutions and workarounds for various scenarios.
Read more >
6 Common Windows Screen Resolution Issues and Fixes
6 Common Windows Screen Resolution Issues and Fixes · 2. Incorrect App-Specific Settings · 3. Problems With the Hardware · 4. Faulty or...
Read more >
Fix Screen Resolution problems in Windows 11/10
Open WIndows 11/10 Settings. Go to “System > Display.” Click on the Scale drop-down and select the 100% scaling option or select the...
Read more >
How to Fix Windows 10 Display Size and Resolution Issues
First, figure out the native resolution of your display. This is usually written on the box the screen came in, but you can...
Read more >
Photoshop depending (or not) on screen scale. 100% is wrong.
Hi Ferdinandfoh,. I believe the aspect ratio for 1680 x 1050 and 1440 x 900 is 16:10, and you're viewing a file resolution...
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