diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:12:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-19 21:34:46 +0200 |
commit | 3aef606f2758172a27718a06fea0ff9080e4d80f (patch) | |
tree | ad323c90301d80bbb3b68163d8b87e5402b687ed /vcl/source/gdi/graph.cxx | |
parent | 5afba3e12c8d4eb1ebb8e087134eb87593bb017a (diff) |
use tools::Long in vcl
Change-Id: Ice1055021e8568634e9a66ba89d3bb4ef4e731df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104522
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/graph.cxx')
-rw-r--r-- | vcl/source/gdi/graph.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx index 1fe6dac8cc10..61f0dc3de354 100644 --- a/vcl/source/gdi/graph.cxx +++ b/vcl/source/gdi/graph.cxx @@ -73,8 +73,8 @@ void ImplDrawDefault( OutputDevice* pOutDev, const OUString* pText, { MapMode aMapMode( MapUnit::MapPoint ); Size aSz = pOutDev->LogicToLogic( Size( 0, 12 ), &aMapMode, nullptr ); - long nThreshold = aSz.Height() / 2; - long nStep = nThreshold / 3; + tools::Long nThreshold = aSz.Height() / 2; + tools::Long nStep = nThreshold / 3; if ( !nStep ) nStep = aSz.Height() - nThreshold; @@ -84,14 +84,14 @@ void ImplDrawDefault( OutputDevice* pOutDev, const OUString* pText, pFont->SetFontSize( aSz ); pOutDev->SetFont( *pFont ); - long nTextHeight = pOutDev->GetTextHeight(); - long nTextWidth = pOutDev->GetTextWidth( *pText ); + tools::Long nTextHeight = pOutDev->GetTextHeight(); + tools::Long nTextWidth = pOutDev->GetTextWidth( *pText ); if ( nTextHeight ) { // The approximation does not respect imprecisions caused // by word wraps - long nLines = aSize.Height() / nTextHeight; - long nWidth = aSize.Width() * nLines; // Approximation!!! + tools::Long nLines = aSize.Height() / nTextHeight; + tools::Long nWidth = aSize.Width() * nLines; // Approximation!!! if ( nTextWidth <= nWidth || aSz.Height() <= nThreshold ) { @@ -441,14 +441,14 @@ void Graphic::DrawEx( OutputDevice* pOutDev, const OUString& rText, } void Graphic::StartAnimation( OutputDevice* pOutDev, const Point& rDestPt, - const Size& rDestSz, long nExtraData, + const Size& rDestSz, tools::Long nExtraData, OutputDevice* pFirstFrameOutDev ) { ImplTestRefCount(); mxImpGraphic->ImplStartAnimation( pOutDev, rDestPt, rDestSz, nExtraData, pFirstFrameOutDev ); } -void Graphic::StopAnimation( const OutputDevice* pOutDev, long nExtraData ) +void Graphic::StopAnimation( const OutputDevice* pOutDev, tools::Long nExtraData ) { ImplTestRefCount(); mxImpGraphic->ImplStopAnimation( pOutDev, nExtraData ); |