git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45945
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else
return (wxCoord)((double)new_y * m_scaleY - 0.5) * m_signY + m_deviceOriginY + m_macLocalOrigin.y;
}
else
return (wxCoord)((double)new_y * m_scaleY - 0.5) * m_signY + m_deviceOriginY + m_macLocalOrigin.y;
}
wxCoord wxDC::DeviceToLogicalX(wxCoord x) const
{
return wxRound((double)(x - m_deviceOriginX) / m_scaleX) * m_signX + m_logicalOriginX;
wxCoord wxDC::DeviceToLogicalX(wxCoord x) const
{
return wxRound((double)(x - m_deviceOriginX) / m_scaleX) * m_signX + m_logicalOriginX;
{
return wxRound((double)(y) * m_scaleY);
}
{
return wxRound((double)(y) * m_scaleY);
}
#endif // wxMAC_USE_CORE_GRAPHICS
#endif // wxMAC_USE_CORE_GRAPHICS