1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:57:45 +00:00

LibWeb: Fix typo in FillEllipse painting command name

This commit is contained in:
Aliaksandr Kalenik 2023-11-21 15:24:42 +01:00 committed by Andreas Kling
parent 790bfd7ef9
commit a5cf875e23
2 changed files with 4 additions and 4 deletions

View file

@ -107,7 +107,7 @@ void RecordingPainter::draw_ellipse(Gfx::IntRect const& a_rect, Color color, int
void RecordingPainter::fill_ellipse(Gfx::IntRect const& a_rect, Color color, Gfx::AntiAliasingPainter::BlendMode blend_mode) void RecordingPainter::fill_ellipse(Gfx::IntRect const& a_rect, Color color, Gfx::AntiAliasingPainter::BlendMode blend_mode)
{ {
push_command(FillElipse { push_command(FillEllipse {
.rect = state().translation.map(a_rect), .rect = state().translation.map(a_rect),
.color = color, .color = color,
.blend_mode = blend_mode, .blend_mode = blend_mode,
@ -488,7 +488,7 @@ void RecordingPainter::execute(PaintingCommandExecutor& executor)
[&](DrawEllipse const& command) { [&](DrawEllipse const& command) {
return executor.draw_ellipse(command.rect, command.color, command.thickness); return executor.draw_ellipse(command.rect, command.color, command.thickness);
}, },
[&](FillElipse const& command) { [&](FillEllipse const& command) {
return executor.fill_ellipse(command.rect, command.color, command.blend_mode); return executor.fill_ellipse(command.rect, command.color, command.blend_mode);
}, },
[&](DrawLine const& command) { [&](DrawLine const& command) {

View file

@ -203,7 +203,7 @@ struct DrawEllipse {
[[nodiscard]] Gfx::IntRect bounding_rect() const { return rect; } [[nodiscard]] Gfx::IntRect bounding_rect() const { return rect; }
}; };
struct FillElipse { struct FillEllipse {
Gfx::IntRect rect; Gfx::IntRect rect;
Color color; Color color;
Gfx::AntiAliasingPainter::BlendMode blend_mode; Gfx::AntiAliasingPainter::BlendMode blend_mode;
@ -332,7 +332,7 @@ using PaintingCommand = Variant<
StrokePathUsingColor, StrokePathUsingColor,
StrokePathUsingPaintStyle, StrokePathUsingPaintStyle,
DrawEllipse, DrawEllipse,
FillElipse, FillEllipse,
DrawLine, DrawLine,
DrawSignedDistanceField, DrawSignedDistanceField,
PaintProgressbar, PaintProgressbar,