diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-06 10:13:20 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-06 10:13:20 +0100 |
commit | 9a93277b869caca4db054385db59fc7b7d541570 (patch) | |
tree | ffd9690a67d00c5212937c8025c599f5754293bd /vcl/source | |
parent | 352c40dd5ce715f6ae654b8dedf2fc2145275a1d (diff) |
vcl: fix Android build
Change-Id: Ib71d74d4b66b02a6a680b5ab0c905b987d59cf7f
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/decoview.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index 8545e87ccf09..c04c430ceac3 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -28,6 +28,8 @@ BUTTON_DRAW_CHECKED | \ BUTTON_DRAW_HIGHLIGHT) +using namespace std; + namespace { long AdjustRectToSquare( Rectangle &rRect ) @@ -1111,15 +1113,15 @@ void DecorationView::DrawHandle(const Rectangle& rRect, bool bVertical) if (bVertical) { aLocation = Rectangle(nHalfWidth - nRadius, - std::round(fDistance * i) - nRadius, + round(fDistance * i) - nRadius, nHalfWidth + nRadius, - std::round(fDistance * i) + nRadius); + round(fDistance * i) + nRadius); } else { - aLocation = Rectangle(std::round(fDistance * i) - nRadius, + aLocation = Rectangle(round(fDistance * i) - nRadius, nHalfHeight - nRadius, - std::round(fDistance * i) + nRadius, + round(fDistance * i) + nRadius, nHalfHeight + nRadius); } mpOutDev->DrawEllipse(aLocation); |