1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

LibGfx: Rename draw_ellipse/circle to fill_ellipse/circle

This makes these functions more consistent with the non-aa painter.
This commit is contained in:
MacDue 2022-06-01 00:51:38 +01:00 committed by Andreas Kling
parent f578247cdf
commit 8ac5f625e9
4 changed files with 14 additions and 13 deletions

View file

@ -41,9 +41,9 @@ void EyesWidget::render_eyeball(int row, int column, Gfx::AntiAliasingPainter& p
auto height_thickness = max(int(eye_height / 5.5), 1);
bounds.shrink(int(eye_width / 12.5), 0);
painter.draw_ellipse(bounds, palette().base_text());
painter.fill_ellipse(bounds, palette().base_text());
bounds.shrink(width_thickness, height_thickness);
painter.draw_ellipse(bounds, palette().base());
painter.fill_ellipse(bounds, palette().base());
Gfx::IntPoint pupil_center = this->pupil_center(bounds);
Gfx::IntSize pupil_size {
@ -57,7 +57,7 @@ void EyesWidget::render_eyeball(int row, int column, Gfx::AntiAliasingPainter& p
pupil_size.height()
};
painter.draw_ellipse(pupil, palette().base_text());
painter.fill_ellipse(pupil, palette().base_text());
}
Gfx::IntPoint EyesWidget::pupil_center(Gfx::IntRect& eyeball_bounds) const