Skip to content

Commit

Permalink
LibWeb: Respect conic gradient start angle in Skia painter
Browse files Browse the repository at this point in the history
  • Loading branch information
kalenikaliaksandr committed Jul 15, 2024
1 parent 54fdbf7 commit 1ad4cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1183,9 +1183,9 @@ CommandResult DisplayListPlayerSkia::paint_conic_gradient(PaintConicGradient con
auto center = command.position.translated(rect.location()).to_type<float>();

SkMatrix matrix;
matrix.setRotate(-90, center.x(), center.y());
matrix.setRotate(-90 + conic_gradient_data.start_angle, center.x(), center.y());

// FIXME: Account for repeat length and start angle
// FIXME: Account for repeat length
auto shader = SkGradientShader::MakeSweep(center.x(), center.y(), colors.data(), positions.data(), positions.size(), 0, &matrix);

SkPaint paint;
Expand Down

0 comments on commit 1ad4cd5

Please sign in to comment.