Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Jan 15, 2025
1 parent 8949170 commit 3e72b4d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bool UIColorIsP3ColorSpace(const std::shared_ptr<void> &uiColor)
CGFloat b = CGFloat(intColor & 0xFF) / 255.0;

UIColor *color = [UIColor colorWithRed:r green:g blue:b alpha:a];
auto colorHash = facebook::react::hash_combine(intColor, intColor, intColor, intColor, 0);
auto colorHash = facebook::react::hash_combine(intColor, 0);
color.reactHash = colorHash;
return color;
}
Expand Down Expand Up @@ -133,8 +133,7 @@ int32_t ColorFromUIColor(const std::shared_ptr<void> &uiColor)
}

auto color = ColorFromColorComponents(components);
auto colorHash =
facebook::react::hash_combine(color, color, color, color, components.colorSpace == ColorSpace::DisplayP3);
auto colorHash = facebook::react::hash_combine(color, components.colorSpace == ColorSpace::DisplayP3);
uiColor.reactHash = colorHash;

return uiColor;
Expand Down

0 comments on commit 3e72b4d

Please sign in to comment.