Skip to content

Commit

Permalink
Premultiply gradient colors (flutter#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero authored and dnfield committed Apr 27, 2022
1 parent 6f02b89 commit cbd14ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impeller/entity/contents/linear_gradient_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ bool LinearGradientContents::Render(const ContentContext& renderer,
FS::GradientInfo gradient_info;
gradient_info.start_point = start_point_;
gradient_info.end_point = end_point_;
gradient_info.start_color = colors_[0];
gradient_info.end_color = colors_[1];
gradient_info.start_color = colors_[0].Premultiply();
gradient_info.end_color = colors_[1].Premultiply();

Command cmd;
cmd.label = "LinearGradientFill";
Expand Down

0 comments on commit cbd14ba

Please sign in to comment.