summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/salgdilayout.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-27 17:07:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-02 07:24:36 +0100
commit312c0abcff23a5bc7cf4442359ec48187ec06d48 (patch)
tree9f4b8be273c1560018f035a73294fcab9b1476a7 /vcl/source/gdi/salgdilayout.cxx
parent451ed3d595c5e2a32d820e1751e890f894832a9c (diff)
drop old tools/gen methods in vcl
Change-Id: I863ce5ae46ae90f06780261fa17b087a7153c807 Reviewed-on: https://gerrit.libreoffice.org/50445 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/salgdilayout.cxx')
-rw-r--r--vcl/source/gdi/salgdilayout.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index 4efc812a0fce..48fb33ed5a6c 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -106,6 +106,12 @@ bool SalGraphics::drawTransformedBitmap(
return false;
}
+long SalGraphics::mirror2( long x, const OutputDevice *pOutDev ) const
+{
+ mirror(x, pOutDev);
+ return x;
+}
+
void SalGraphics::mirror( long& x, const OutputDevice *pOutDev ) const
{
long w;
@@ -647,7 +653,7 @@ bool SalGraphics::HitTestNativeScrollbar( ControlPart nPart, const tools::Rectan
{
Point pt( aPos );
tools::Rectangle rgn( rControlRegion );
- mirror( pt.X(), pOutDev );
+ pt.setX( mirror2( pt.X(), pOutDev ) );
mirror( rgn, pOutDev );
return hitTestNativeControl( ControlType::Scrollbar, nPart, rgn, pt, rIsInside );
}