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

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

Issue 516743002: Force scales 125% and lower down to 100% (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 4 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: ui/gfx/win/dpi.cc
diff --git a/ui/gfx/win/dpi.cc b/ui/gfx/win/dpi.cc
index e562a086c9a151018f78bbffc92adf177796d501..44df6eb852851eff06875f72fbc9208c2a04dff8 100644
--- a/ui/gfx/win/dpi.cc
+++ b/ui/gfx/win/dpi.cc
@@ -134,6 +134,10 @@ Size GetDPI() {
float GetDPIScale() {
if (IsHighDPIEnabled()) {
+ if (GetDPI().width() <= 120) {
sky 2014/08/28 23:23:29 Add a comment as to why we do this.
scottmg 2014/08/28 23:29:22 Done.
+ // 120 logical pixels is 125% scale.
+ return 1.0;
+ }
return gfx::Display::HasForceDeviceScaleFactor() ?
gfx::Display::GetForcedDeviceScaleFactor() :
GetUnforcedDeviceScaleFactor();
« 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