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 Piet for drawing #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Use Piet for drawing #4

wants to merge 3 commits into from

Conversation

raphlinus
Copy link
Owner

This PR also includes an update to Rust 2018 and a cargo fmt.

Note: there are some warnings and rough edges, these are captured in linebender/druid#14

Also apply rustfmt. No semantic changes are expected.
Redo the drawing to use piet instead of Direct2D.
When taking a mutable reference to the render context, I think it's
slightly better to reborrow rather than have a reference to a reference,
even though the latter works (due to subtle deref coercion rules).
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.

1 participant