From: Julian Smart Date: Tue, 8 Jun 1999 15:56:50 +0000 (+0000) Subject: Removed floor() references X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a2b0fa12c9cb341acce346c0e7794e099363cd01 Removed floor() references git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 52726e5100..8f586b56c8 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -1105,22 +1105,22 @@ long wxDCBase::DeviceToLogicalYRel(long y) const long wxDCBase::LogicalToDeviceX(long x) const { - return (long) (floor((x) - m_logicalOriginX)*m_logicalScaleX*m_userScaleX*m_signX*m_scaleX + m_deviceOriginX); + return (long) ((x - m_logicalOriginX)*m_logicalScaleX*m_userScaleX*m_signX*m_scaleX + m_deviceOriginX); } long wxDCBase::LogicalToDeviceXRel(long x) const { - return (long) (floor(x)*m_logicalScaleX*m_userScaleX*m_signX*m_scaleX); + return (long) (x*m_logicalScaleX*m_userScaleX*m_signX*m_scaleX); } long wxDCBase::LogicalToDeviceY(long y) const { - return (long) (floor((y) - m_logicalOriginY)*m_logicalScaleY*m_userScaleY*m_signY*m_scaleY + m_deviceOriginY); + return (long) ((y - m_logicalOriginY)*m_logicalScaleY*m_userScaleY*m_signY*m_scaleY + m_deviceOriginY); } long wxDCBase::LogicalToDeviceYRel(long y) const { - return (long) (floor(y)*m_logicalScaleY*m_userScaleY*m_signY*m_scaleY); + return (long) (y*m_logicalScaleY*m_userScaleY*m_signY*m_scaleY); } // ---------------------------------------------------------------------------