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

Unified Diff: ui/gfx/win/dpi.cc

Issue 232483005: Enable --high-dpi-support by default. Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 8 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 | « ui/gfx/switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/win/dpi.cc
diff --git a/ui/gfx/win/dpi.cc b/ui/gfx/win/dpi.cc
index fbcbb77866e5aa01714650245f59dd1f5e02ccc4..c835ca1a71aefaa05127982b0be7151d246c48f6 100644
--- a/ui/gfx/win/dpi.cc
+++ b/ui/gfx/win/dpi.cc
@@ -168,8 +168,8 @@ bool IsHighDPIEnabled() {
// Default is disabled.
static DWORD value = ReadRegistryValue(
HKEY_CURRENT_USER, kRegistryProfilePath,
- kHighDPISupportW, FALSE);
- return force_highdpi_for_testing || (value == 1);
+ kHighDPISupportW, TRUE);
+ return force_highdpi_for_testing || (value != 0);
}
bool IsInHighDPIMode() {
« no previous file with comments | « ui/gfx/switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698