diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-18 08:45:32 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-20 22:10:59 +0200 |
commit | 8e21a02520cbd2fdc09df1ca675f4aa46a02d5f6 (patch) | |
tree | f19907a12be55d8fdd4fc3560ded681dc3216fa0 /include | |
parent | 2b8528a2745bec7909bfe2265d6110a9964eef47 (diff) |
vcl: add floating equivalent for MapRes
Change-Id: I165e403d2834d341f7da7a280859afccb995a3bb
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 3 | ||||
-rw-r--r-- | include/vcl/outdevmap.hxx | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index d59067a43177..66559c26ae11 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1728,6 +1728,9 @@ public: */ SAL_DLLPRIVATE long ImplLogicWidthToDevicePixel( long nWidth ) const; + SAL_DLLPRIVATE DeviceCoordinate LogicWidthToDeviceCoordinate( long nWidth ) const; + SAL_DLLPRIVATE DeviceCoordinate LogicHeightToDeviceCoordinate( long nHeight ) const; + private: /** Convert a logical X coordinate to a device pixel's X coordinate. diff --git a/include/vcl/outdevmap.hxx b/include/vcl/outdevmap.hxx index d35c02b9c8ea..05f43c065c1e 100644 --- a/include/vcl/outdevmap.hxx +++ b/include/vcl/outdevmap.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_VCL_OUTDEVMAP_HXX #define INCLUDED_VCL_OUTDEVMAP_HXX - struct ImplMapRes { long mnMapOfsX; // Offset in X direction @@ -29,6 +28,10 @@ struct ImplMapRes long mnMapScNumY; // Scaling factor - numerator in Y direction long mnMapScDenomX; // Scaling factor - denominator in X direction long mnMapScDenomY; // Scaling factor - denominator in Y direction + double mfOffsetX; + double mfOffsetY; + double mfScaleX; + double mfScaleY; }; struct ImplThresholdRes |