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

Implementation of ClearRect with masking support #2133

Merged
merged 4 commits into from
Mar 2, 2017

Conversation

msft-Jeyaram
Copy link
Contributor

No description provided.

@msft-Jeyaram
Copy link
Contributor Author

Note: the second iteration is the change from the last CR.
The implementation was correct, it was the way how tests were that caused some failures, which are fixed now.

@DHowett-MSFT please take a look at the new heart art :)

@msft-Jeyaram
Copy link
Contributor Author

Looks like git lfs is failing on build machines


HRESULT __CGContext::ClearRect(CGRect rect) {
PushBeginDraw();
auto endDraw = wil::ScopeExit([this]() { PopEndDraw(); });

Choose a reason for hiding this comment

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

prefer return PopEndDraw() at the end; otherwise, we lose the HRESULT from EndDraw.

@msft-Jeyaram
Copy link
Contributor Author

so on the build machine, the generated image for one of the tests differ by a pixel :(
making it such that we check if the pixel is present.

@msft-Jeyaram
Copy link
Contributor Author

Verbal extra sign off by @DHowett-MSFT merging .

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.

4 participants