Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dc.GetCGContext if available #55

Merged
merged 1 commit into from Jun 26, 2012
Merged

Use dc.GetCGContext if available #55

merged 1 commit into from Jun 26, 2012

Conversation

RobinD42
Copy link
Contributor

The wx.DC class has a GetCGContext method that returns the same value that kiva's macport extension module returns, rendering that extension obsolete. The GetCGContext method is available in wx 2.8 and 2.9, and using it works in both Carbon and Cocoa builds, including 64-bit. This patch changes mac_getport() to use GetCGContext if it's available, and disables the building of the macport extension if building for wx 2.8+.

@rkern
Copy link
Member

rkern commented Jun 26, 2012

Looks good to me. Thanks!

rkern added a commit that referenced this pull request Jun 26, 2012
@rkern rkern merged commit 1656bbb into enthought:master Jun 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants