We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5db75a commit 75a9853Copy full SHA for 75a9853
impeller/display_list/display_list_dispatcher.cc
@@ -107,8 +107,8 @@ void DisplayListDispatcher::setColorSource(const flutter::DlColorSource* source)
107
const flutter::DlLinearGradientColorSource* linear = source->asLinearGradient();
108
FML_DCHECK(linear);
109
auto contents = std::make_shared<LinearGradientContents>();
110
- contents->SetEndPoints(ToPoint(linear->p0()),
111
- ToPoint(linear->p1()));
+ contents->SetEndPoints(ToPoint(linear->start_point()),
+ ToPoint(linear->end_point()));
112
std::vector<Color> colors;
113
for (auto i = 0; i < linear->stop_count(); i++) {
114
colors.emplace_back(ToColor(linear->colors()[i]));
0 commit comments