From 2894667fa4e04628bcb3cae98a3dbd9cb80593ea Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 7 Apr 2003 03:31:38 +0000 Subject: [PATCH] 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 --- src/cocoa/dc.mm | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) 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; -} - -- 2.45.2