diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-04-16 23:10:45 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-04-17 03:56:59 +0200 |
commit | ea9904c89608d561f6bde3379408208bbb24fe35 (patch) | |
tree | 4648cbc73b7a48ea3361f51280a9713be38f0afd /vcl/source/animate | |
parent | 0957ee9f5d379c80fca4027c187b471118d0490d (diff) |
Drop FRound, and use generalized basegfx::fround
Change-Id: I7447e649dc3ef4e51242f69c7486a3e84e103d2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166159
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/source/animate')
-rw-r--r-- | vcl/source/animate/AnimationRenderer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/animate/AnimationRenderer.cxx b/vcl/source/animate/AnimationRenderer.cxx index 29f386e0d388..5755c549d3e5 100644 --- a/vcl/source/animate/AnimationRenderer.cxx +++ b/vcl/source/animate/AnimationRenderer.cxx @@ -121,11 +121,11 @@ void AnimationRenderer::getPosSize( const AnimationFrame& rAnimationFrame, Point else fFactY = 1.0; - rPosPix.setX( FRound( rAnimationFrame.maPositionPixel.X() * fFactX ) ); - rPosPix.setY( FRound( rAnimationFrame.maPositionPixel.Y() * fFactY ) ); + rPosPix.setX(basegfx::fround<tools::Long>(rAnimationFrame.maPositionPixel.X() * fFactX)); + rPosPix.setY(basegfx::fround<tools::Long>(rAnimationFrame.maPositionPixel.Y() * fFactY)); - aPt2.setX( FRound( aPt2.X() * fFactX ) ); - aPt2.setY( FRound( aPt2.Y() * fFactY ) ); + aPt2.setX(basegfx::fround<tools::Long>(aPt2.X() * fFactX)); + aPt2.setY(basegfx::fround<tools::Long>(aPt2.Y() * fFactY)); rSizePix.setWidth( aPt2.X() - rPosPix.X() + 1 ); rSizePix.setHeight( aPt2.Y() - rPosPix.Y() + 1 ); |