]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/dc.h
Change GetC to return an int so that it can return wxEOF on error.
[wxWidgets.git] / include / wx / mac / carbon / dc.h
index d8f285e5bb65d509419ea8eea92c6e6e18bfb76a..2b40a0daa08c8c4a3f213d387d6bef56b25b7049 100644 (file)
@@ -36,6 +36,8 @@
 
 class wxMacPortStateHelper;
 
+#if !wxUSE_GRAPHICS_CONTEXT
+
 class WXDLLEXPORT wxGraphicPath
 {
 public :
@@ -241,7 +243,7 @@ public:
     }
 
 #if wxMAC_USE_CORE_GRAPHICS
-    wxGraphicContext* GetGraphicContext() { return m_graphicContext; }
+    wxGraphicsContext* GetGraphicsContext() { return m_graphicContext; }
 #else
     WXHRGN MacGetCurrentClipRgn() { return m_macCurrentClipRgn; }
     static void MacSetupBackgroundForCurrentPort(const wxBrush& background );
@@ -342,8 +344,7 @@ public:
     WXHDC                           m_macPort;
 
 #if wxMAC_USE_CORE_GRAPHICS
-    wxGraphicContext                *m_graphicContext;
-    wxPoint                         m_macLocalOriginInPort;
+    wxGraphicsContext              *m_graphicContext;
 #else
     void                            MacInstallPen() const;
     void                            MacInstallBrush() const;
@@ -367,4 +368,6 @@ public:
 #endif
 };
 
+#endif
+
 #endif // _WX_DC_H_