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

Unified Diff: ui/gfx/display.cc

Issue 14348033: NOT FOR SUBMIT - Windows Views HiDPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rollback empty changes. Created 7 years, 8 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/gfx/display.cc
diff --git a/ui/gfx/display.cc b/ui/gfx/display.cc
index 79e32d2ed38ba18983c9c3656fb5dcebe64e79b1..6bf8dca97e51c53fc0a30afed7b3eb51b82ac154 100644
--- a/ui/gfx/display.cc
+++ b/ui/gfx/display.cc
@@ -80,7 +80,7 @@ Display::Display(int64 id, const gfx::Rect& bounds)
work_area_(bounds),
device_scale_factor_(GetForcedDeviceScaleFactor()),
rotation_(ROTATE_0) {
-#if defined(USE_AURA)
+#if defined(USE_AURA) || defined(ENABLE_HIDPI)
SetScaleAndBounds(device_scale_factor_, bounds);
#endif
}
@@ -118,7 +118,7 @@ void Display::SetScaleAndBounds(
void Display::SetSize(const gfx::Size& size_in_pixel) {
gfx::Point origin = bounds_.origin();
-#if defined(USE_AURA)
+#if defined(USE_AURA) || defined(ENABLE_HIDPI)
gfx::PointF origin_f = origin;
origin_f.Scale(device_scale_factor_);
origin.SetPoint(origin_f.x(), origin_f.y());

Powered by Google App Engine
This is Rietveld 408576698