Removed floor() references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2cdd0d01e5
commit
a2b0fa12c9
@ -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);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user