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

Unified Diff: chrome/browser/ui/libgtkui/gtk_ui.cc

Issue 2505833002: Allow 1.2 scale factor on linux (Closed)
Patch Set: Created 4 years, 1 month 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/browser/ui/libgtkui/gtk_ui.cc
diff --git a/chrome/browser/ui/libgtkui/gtk_ui.cc b/chrome/browser/ui/libgtkui/gtk_ui.cc
index 1c60e590939ff74ddec0789f9435f239eb3e53c3..6d128f557a51d898214bfe26573027bf00a43440 100644
--- a/chrome/browser/ui/libgtkui/gtk_ui.cc
+++ b/chrome/browser/ui/libgtkui/gtk_ui.cc
@@ -1054,10 +1054,9 @@ void Gtk2UI::UpdateDeviceScaleFactor() {
// changes. This is to allow flags to override the DPI settings
// during startup.
float scale = GetRawDeviceScaleFactor();
-
- // Blacklist scaling factors <130% (crbug.com/484400) and round
+ // Blacklist scaling factors <120% (crbug.com/484400) and round
// to 1 decimal to prevent rendering problems (crbug.com/485183).
- device_scale_factor_ = scale < 1.3f ? 1.0f : roundf(scale * 10) / 10;
+ device_scale_factor_ = scale < 1.2f ? 1.0f : roundf(scale * 10) / 10;
UpdateDefaultFont();
}
« 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