Chromium Code Reviews| Index: chrome/app/chrome_exe_main_win.cc |
| diff --git a/chrome/app/chrome_exe_main_win.cc b/chrome/app/chrome_exe_main_win.cc |
| index 86677bf87e7255515594a1417cf827e4257dc42f..950df304eb8b48ef4a864b873efc76fe597ac659 100644 |
| --- a/chrome/app/chrome_exe_main_win.cc |
| +++ b/chrome/app/chrome_exe_main_win.cc |
| @@ -127,7 +127,11 @@ BOOL SetProcessDPIAwareWrapper() { |
| } |
| void EnableHighDPISupport() { |
| - if (!SetProcessDpiAwarenessWrapper(PROCESS_SYSTEM_DPI_AWARE)) { |
| + PROCESS_DPI_AWARENESS process_dpi_awareness = |
| + base::win::GetVersion() >= base::win::VERSION_WIN10 |
|
scottmg
2016/06/30 17:06:29
Why not >= VERSION_WIN8_1? If there's some good re
robliao
2016/06/30 19:53:48
Done. Add this comment:
// Enable per-monitor DP
|
| + ? PROCESS_PER_MONITOR_DPI_AWARE |
| + : PROCESS_SYSTEM_DPI_AWARE; |
| + if (!SetProcessDpiAwarenessWrapper(process_dpi_awareness)) { |
| SetProcessDPIAwareWrapper(); |
| } |
| } |