summaryrefslogtreecommitdiff
path: root/include/vcl/devicecoordinate.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-11 19:51:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-12 15:08:36 +0100
commitbe30c734bf420f9dd890906c84d2b4460385a2ba (patch)
tree5b6219b8f666e0493ad5961bdca7b132f63b3d85 /include/vcl/devicecoordinate.hxx
parent9a850dd9f3c221660b6259bdfd64a77343f2256c (diff)
keep positions as DeviceCoordinate within SalLayout
Change-Id: I20bbb0e252ffd09901f587599430e715dbe977b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128300 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/devicecoordinate.hxx')
-rw-r--r--include/vcl/devicecoordinate.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/devicecoordinate.hxx b/include/vcl/devicecoordinate.hxx
index 4532b51429e0..708cb6ead0e3 100644
--- a/include/vcl/devicecoordinate.hxx
+++ b/include/vcl/devicecoordinate.hxx
@@ -15,11 +15,13 @@
#if VCL_FLOAT_DEVICE_PIXEL
#include <basegfx/point/b2dpoint.hxx>
typedef double DeviceCoordinate;
+typedef basegfx::B2DPoint DevicePoint;
#else /* !VCL_FLOAT_DEVICE_PIXEL */
#include <basegfx/point/b2ipoint.hxx>
typedef sal_Int32 DeviceCoordinate;
+typedef basegfx::B2IPoint DevicePoint;
#endif /* ! Carpet Cushion */