diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-12 16:30:40 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-12 19:10:10 +0200 |
commit | 91eb279ecdbc8183c18d9b4d856ffadf0148250d (patch) | |
tree | f2308efba78d5eb9f155dc0121d177d97c50b375 /vcl/source/outdev/map.cxx | |
parent | e660e1ed73a6eea3f70fcb36a7bc950c57de80fe (diff) |
Revert "vcl: use DeviceCoordinate for GetCaretPositions in sallayout"
This reverts commit 1b42acdaeae134f94580d6e1eba89da16741d596.
Diffstat (limited to 'vcl/source/outdev/map.cxx')
-rw-r--r-- | vcl/source/outdev/map.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index 2cea0d3886fa..396a2c471014 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -2142,31 +2142,6 @@ long Window::ImplLogicUnitToPixelY( long nY, MapUnit eUnit ) return nY; } -long OutputDevice::DeviceCoordinateToLogicWidth(DeviceCoordinate width) const -{ - if ( !mbMap ) - { - return (long)width; - } -#if VCL_FLOAT_DEVICE_PIXEL - return (long)(width / (maMapRes.mfScaleX * mnDPIX)); -#else - return ImplDevicePixelToLogicWidth(width); -#endif -} - -long OutputDevice::DeviceCoordinateToLogicHeight(DeviceCoordinate height) const -{ - if ( !mbMap ) - { - return (long)height; - } -#if VCL_FLOAT_DEVICE_PIXEL - return (long)(height / (maMapRes.mfScaleY * mnDPIY)); -#else - return ImplDevicePixelToLogicHeight(height); -#endif -} DeviceCoordinate OutputDevice::LogicWidthToDeviceCoordinate( long nWidth ) const { |