summaryrefslogtreecommitdiff
path: root/include/vcl/outdev.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-23 17:27:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-25 09:50:57 +0200
commit241ce1488b8354f6c203d4feaef8a9fed9a3f52c (patch)
tree541b122f6d94527bf2bf7344b1ade8063cbe492f /include/vcl/outdev.hxx
parent53b5b720d33b93b2d05a845b28dbc7709eb4d9e1 (diff)
retain accuracy when we have subpixels and convert back to Logic units
Change-Id: If5a8624c1150919cc66f7b7d635edf112b480523 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138738 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/outdev.hxx')
-rw-r--r--include/vcl/outdev.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 3f00d9dcde12..17d5d87289e9 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -1720,6 +1720,8 @@ public:
SAL_DLLPRIVATE tools::Long ImplLogicHeightToDevicePixel( tools::Long nHeight ) const;
SAL_DLLPRIVATE double ImplLogicHeightToDeviceSubPixel(tools::Long nHeight) const;
+ SAL_DLLPRIVATE Point SubPixelToLogic(const DevicePoint& rDevicePt) const;
+
/** Convert device pixels to a width in logical units.
To get the logical width, it must calculate the X-DPI of the device and the