Premultiply gradient colors (flutter/engine#106)
This commit is contained in:
committed by
Dan Field
parent
83f102353c
commit
ff91b522dd
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user