Index: ui/gfx/display.cc |
diff --git a/ui/gfx/display.cc b/ui/gfx/display.cc |
index fe89b5e9b9ce793b46456a33a58b9f45f872f669..42887c2f4b68f49dcb45aa4d5488a29f15e21d38 100644 |
--- a/ui/gfx/display.cc |
+++ b/ui/gfx/display.cc |
@@ -70,7 +70,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 |
} |
@@ -108,7 +108,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()); |