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

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

Issue 2695523002: Fix font sizes being incorrect when using --force-device-scale-factor. (Closed)
Patch Set: move to screen_win Created 3 years, 10 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
Index: ui/display/win/dpi.h
diff --git a/ui/display/win/dpi.h b/ui/display/win/dpi.h
index bf95fa22e5e006bf6c4cac2b104bc1f63e442ea7..96c62506155b28aaffc29207dab15fc9deae1448 100644
--- a/ui/display/win/dpi.h
+++ b/ui/display/win/dpi.h
@@ -23,6 +23,9 @@ DISPLAY_EXPORT void SetDefaultDeviceScaleFactor(float scale);
// scale factor is 1.0. This does not handle per-monitor DPI.
DISPLAY_EXPORT float GetDPIScale();
+// Equivalent to GetDPIScale() but ignores the --force-device-scale-factor flag.
+float GetUnforcedDeviceScaleFactor();
+
// Returns the equivalent DPI for |device_scaling_factor|.
DISPLAY_EXPORT int GetDPIFromScalingFactor(float device_scaling_factor);

Powered by Google App Engine
This is Rietveld 408576698