| 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());
|
|
|