From: David Elliott Date: Mon, 7 Apr 2003 03:31:38 +0000 (+0000) Subject: Relocate DeviceToLogical[XY], add stub for LogicalToDevice[XY] X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2894667fa4e04628bcb3cae98a3dbd9cb80593ea?ds=inline Relocate DeviceToLogical[XY], add stub for LogicalToDevice[XY] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/dc.mm b/src/cocoa/dc.mm index 79c10e0555..b6c71aaca8 100644 --- a/src/cocoa/dc.mm +++ b/src/cocoa/dc.mm @@ -145,6 +145,27 @@ void wxDC::DoDrawText(const wxString& text, wxCoord x, wxCoord y) [context restoreGraphicsState]; } +// wxDCBase functions +int wxDCBase::DeviceToLogicalX(int x) const +{ + return x; +} + +int wxDCBase::DeviceToLogicalY(int y) const +{ + return y; +} + +int wxDCBase::LogicalToDeviceX(int x) const +{ + return x; +} + +int wxDCBase::LogicalToDeviceY(int y) const +{ + return y; +} + /////////////////////////////////////////////////////////////////////////// // cut here, the rest is stubs /////////////////////////////////////////////////////////////////////////// @@ -394,13 +415,3 @@ void wxDC::ComputeScaleAndOrigin(void) } }; -int wxDCBase::DeviceToLogicalX(int x) const -{ - return x; -} - -int wxDCBase::DeviceToLogicalY(int y) const -{ - return y; -} -