summaryrefslogtreecommitdiff
path: root/canvas/source/tools/surfaceproxy.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-09-21 12:17:00 +0200
committerTomaž Vajngerl <quikee@gmail.com>2023-07-13 13:19:00 +0200
commitf896bbcffeccd27248f908d2628d03dddf83ea94 (patch)
treeffbf0300461780c94e897cad2ad29906695ac91d /canvas/source/tools/surfaceproxy.cxx
parent6086d896183a529d4a0b83d4862970c8f320b0aa (diff)
basegfx: replace typedef with a class B2ISize based on Size2D
Change-Id: Iaf7d02bb236f81a38a67a1430a718b6c3c78efae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139708 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'canvas/source/tools/surfaceproxy.cxx')
-rw-r--r--canvas/source/tools/surfaceproxy.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/canvas/source/tools/surfaceproxy.cxx b/canvas/source/tools/surfaceproxy.cxx
index 3a1bf4fe3f21..af76b8b3c30a 100644
--- a/canvas/source/tools/surfaceproxy.cxx
+++ b/canvas/source/tools/surfaceproxy.cxx
@@ -36,10 +36,10 @@ namespace canvas
{
const ::basegfx::B2ISize aImageSize(mpBuffer->getWidth(),mpBuffer->getHeight());
const ::basegfx::B2ISize aPageSize(mpPageManager->getPageSize());
- const sal_Int32 aPageSizeX(aPageSize.getX());
- const sal_Int32 aPageSizeY(aPageSize.getY());
- const sal_Int32 aImageSizeX(aImageSize.getX());
- const sal_Int32 aImageSizeY(aImageSize.getY());
+ const sal_Int32 aPageSizeX(aPageSize.getWidth());
+ const sal_Int32 aPageSizeY(aPageSize.getHeight());
+ const sal_Int32 aImageSizeX(aImageSize.getWidth());
+ const sal_Int32 aImageSizeY(aImageSize.getHeight());
// see if the size of the colorbuffer is larger than the size
// of a single page. if this is the case we divide the
@@ -64,10 +64,10 @@ namespace canvas
// the current surface is located at the position [x,y]
// and has the size [min(restx,pagesizex),min(resty,pagesizey)
::basegfx::B2IPoint aOffset(x,y);
- ::basegfx::B2ISize aSize( std::min( aImageSize.getX()-x,
- aPageSize.getX() ),
- std::min( aImageSize.getY()-y,
- aPageSize.getY() ) );
+ ::basegfx::B2ISize aSize( std::min( aImageSize.getWidth()-x,
+ aPageSize.getWidth() ),
+ std::min( aImageSize.getHeight()-y,
+ aPageSize.getHeight() ) );
maSurfaceList.push_back(
std::make_shared<Surface>(