Skip to content

fix a node background color in non layer baked mode.#1693

Merged
vovasty merged 1 commit into
TextureGroup:masterfrom
vovasty:vlad/ASDisplayNode-background
Oct 8, 2019
Merged

fix a node background color in non layer baked mode.#1693
vovasty merged 1 commit into
TextureGroup:masterfrom
vovasty:vlad/ASDisplayNode-background

Conversation

@vovasty

@vovasty vovasty commented Oct 1, 2019

Copy link
Copy Markdown
Contributor

This fixes problem with snapshot testing: when color is dynamic and node is not layer backed, background color remains the same.

Comment thread Source/ASDisplayNode.mm Outdated
}
} else {
// we set view and layer background color in _ASPendingState, so do the same here
if (!CGColorEqualToColor(_layer.backgroundColor, cgBackgroundColor)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it possible to move the color equality test up, so that the code doesn't have to be here twice?

@vovasty
vovasty force-pushed the vlad/ASDisplayNode-background branch from ac607c4 to ed629d2 Compare October 1, 2019 18:49
@vovasty
vovasty force-pushed the vlad/ASDisplayNode-background branch from ed629d2 to 287747c Compare October 8, 2019 22:35
@vovasty
vovasty merged commit 6baf29a into TextureGroup:master Oct 8, 2019
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.

3 participants