summaryrefslogtreecommitdiff
path: root/include/vcl/devicecoordinate.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-12 21:19:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-13 18:31:35 +0100
commit5e218b5c51f7d9cd10bd9db832879efca41b9c75 (patch)
tree292d17ec5e82a4d80fb18f4383b16ce7b4bbf714 /include/vcl/devicecoordinate.hxx
parentcf2690ae76b4250af32be7c8980b8d83b3611591 (diff)
always use B2DPoint for DevicePoint
Change-Id: If75c3448776743f1b9efbf84a487cfc0c75364ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128365 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.hxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/vcl/devicecoordinate.hxx b/include/vcl/devicecoordinate.hxx
index 708cb6ead0e3..215f0ca74975 100644
--- a/include/vcl/devicecoordinate.hxx
+++ b/include/vcl/devicecoordinate.hxx
@@ -7,24 +7,21 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_VCL_DEVICE_COORDINATE_HXX
-#define INCLUDED_VCL_DEVICE_COORDINATE_HXX
+#pragma once
#include <config_vcl.h>
-#if VCL_FLOAT_DEVICE_PIXEL
#include <basegfx/point/b2dpoint.hxx>
-typedef double DeviceCoordinate;
typedef basegfx::B2DPoint DevicePoint;
+#if VCL_FLOAT_DEVICE_PIXEL
+
+typedef double DeviceCoordinate;
+
#else /* !VCL_FLOAT_DEVICE_PIXEL */
-#include <basegfx/point/b2ipoint.hxx>
typedef sal_Int32 DeviceCoordinate;
-typedef basegfx::B2IPoint DevicePoint;
#endif /* ! Carpet Cushion */
-#endif /* NDef INCLUDED_VCL_DEVICE_COORDINATE_HXX */
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */