Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1003)

Unified Diff: chrome/app/chrome_exe_main_win.cc

Issue 2114503002: Enable Per-Monitor Support for Windows 10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@framefix
Patch Set: Remove Channel Check Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698