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

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

Issue 2157243003: Allow Chrome on Windows to draw at 1.25 device scale factor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix GetDisplayNearestPoint Created 4 years, 5 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/display/win/dpi.h ('k') | ui/display/win/screen_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/win/dpi.cc
diff --git a/ui/display/win/dpi.cc b/ui/display/win/dpi.cc
index 778d83b0d468dc2cd082e98831514f6fe6b3ddb1..cde5a46fffc88edc70e38ba0d5e166bb9a53efeb 100644
--- a/ui/display/win/dpi.cc
+++ b/ui/display/win/dpi.cc
@@ -51,8 +51,7 @@ void SetDefaultDeviceScaleFactor(float scale) {
float GetDPIScale() {
if (display::Display::HasForceDeviceScaleFactor())
return display::Display::GetForcedDeviceScaleFactor();
- float dpi_scale = GetUnforcedDeviceScaleFactor();
- return (dpi_scale <= 1.25f) ? 1.f : dpi_scale;
+ return GetUnforcedDeviceScaleFactor();
}
int GetDPIFromScalingFactor(float device_scaling_factor) {
« no previous file with comments | « ui/display/win/dpi.h ('k') | ui/display/win/screen_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698