Inaccurate Screen Resolution When Scale Is Over 100%
See original GitHub issueDescribe the bug incorrect screen resolution being returned by graphics() when windows scale setting is over 100%.
To Reproduce Steps to reproduce the behavior:
-
go to display settings and set scale over 100%
-
open power shell and get your screen resolution by typing in the following command
wmic path win32_VideoController get /value
-
now, call the graphics() class and get the displays. notice that the resolution is incorrect.
-
go back to windows settings and set the scale to 100% and call graphics() to get the displays. Notice the resolution is correct:
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%:
when scale is set to over 100% that is when I get the incorrect resolution sent back from graphics():
when i set scale to 100%, the correct resolution is returned:
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
Issue Analytics
- State:
- Created 4 years ago
- Comments:29 (16 by maintainers)
Top GitHub Comments
@m-henderson … Thank you for reporting. Will provide a solution later this day.
@sebhildebrandt