Windows Display Setting at 150% still shows 96 DPI

后端 未结 2 1208
南笙
南笙 2020-12-30 09:31

On my laptop running Win7, when I set the display setting to 125%, the DPI shows up as 120 (using both graphics.DpiX and GetDeviceCaps) as expected. However, with the displ

2条回答
  •  不知归路
    2020-12-30 10:13

    On Windows Vista and Windows 7, with DPIs above 120 (I think) and applications that it considers to be non-DPI aware, they switch into DPI Virtualization Mode.

    This does exactly what you're seeing - the application thinks it's running in 96dpi while Windows blows it up and renders everything bigger (and blurrier).

    For more details: https://docs.microsoft.com/en-gb/windows/win32/hidpi

    (original link (now redirects to above): http://msdn.microsoft.com/en-us/library/dd464660(VS.85).aspx#dpi_virtualization)

    The article explains how to disable it on a per-application basis.

提交回复
热议问题