Chromium Code Reviews| Index: chrome/browser/ui/libgtk2ui/gtk2_ui.cc |
| diff --git a/chrome/browser/ui/libgtk2ui/gtk2_ui.cc b/chrome/browser/ui/libgtk2ui/gtk2_ui.cc |
| index ca74730bcb5f7e1e3944e145ee472f128f7eb7a3..21e7ce31e942bf51bac8b875fe5febf76ec7592b 100644 |
| --- a/chrome/browser/ui/libgtk2ui/gtk2_ui.cc |
| +++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.cc |
| @@ -1438,9 +1438,11 @@ float Gtk2UI::GetDeviceScaleFactor() const { |
| if (gfx::Display::HasForceDeviceScaleFactor()) |
| return gfx::Display::GetForcedDeviceScaleFactor(); |
| const int kCSSDefaultDPI = 96; |
| - float scale = GetDPI() / kCSSDefaultDPI; |
| + const float scale = GetDPI() / kCSSDefaultDPI; |
| // Round to 1 decimal, e.g. to 1.4. |
| - return roundf(scale * 10) / 10; |
| + const float rounded = roundf(scale * 10) / 10; |
| + // See crbug.com/484400 |
| + return rounded < 1.3 ? 1.0 : rounded; |
|
mario.endlessm
2016/01/12 15:07:12
Came across this patch set today and found that th
Evan Stade
2016/01/13 04:40:13
Good catch.
Also, I'm not sure if this is intenti
mario.endlessm
2016/01/13 08:58:23
I thought the same thing too and then understood i
|
| } |
| } // namespace libgtk2ui |