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

Remove unnecessary clip cairo #1526

Closed
wants to merge 3 commits into from
Closed

Remove unnecessary clip cairo #1526

wants to merge 3 commits into from

Conversation

mdehoon
Copy link
Contributor

@mdehoon mdehoon commented Nov 22, 2012

When the draw_image function was simplified, the cairo backend was not updated.
Specifically, it's not necessary to perform clipping separately -- this has already been done when draw_image is being called.

ctx.new_path()
RendererCairo.convert_path(ctx, clippath, clippath_trans)
ctx.clip()
ctx = gc.ctx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any difference between gc.ctx and self.gc.ctx?

@mdehoon
Copy link
Contributor Author

mdehoon commented Nov 27, 2012

gc and self.gc are the same object. gc is obtained by calling new_gc, and new_gc always returns self.gc, which is created only once, in the initializer of RendererCairo.

@mdboom
Copy link
Member

mdboom commented Nov 27, 2012

+1

@dmcdougall
Copy link
Member

Great.

@mdehoon Would you be able to squash this down to a single commit?

@mdehoon
Copy link
Contributor Author

mdehoon commented Nov 28, 2012

See mdehoon@8d15940
I hope I did this right -- usually with git I have no clue what I am doing.

@dmcdougall
Copy link
Member

Fixed by #1538.

@dmcdougall dmcdougall closed this Dec 3, 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

3 participants