mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
PixelPaint: Convert to east-const style
This commit is contained in:
parent
242742b6c2
commit
29e80178a8
23 changed files with 72 additions and 72 deletions
|
@ -52,7 +52,7 @@ void BrushTool::on_mouseup(Layer&, GUI::MouseEvent&, GUI::MouseEvent&)
|
|||
}
|
||||
}
|
||||
|
||||
void BrushTool::draw_point(Gfx::Bitmap& bitmap, const Gfx::Color& color, const Gfx::IntPoint& point)
|
||||
void BrushTool::draw_point(Gfx::Bitmap& bitmap, Gfx::Color const& color, Gfx::IntPoint const& point)
|
||||
{
|
||||
for (int y = point.y() - m_size; y < point.y() + m_size; y++) {
|
||||
for (int x = point.x() - m_size; x < point.x() + m_size; x++) {
|
||||
|
@ -70,7 +70,7 @@ void BrushTool::draw_point(Gfx::Bitmap& bitmap, const Gfx::Color& color, const G
|
|||
}
|
||||
}
|
||||
|
||||
void BrushTool::draw_line(Gfx::Bitmap& bitmap, const Gfx::Color& color, const Gfx::IntPoint& start, const Gfx::IntPoint& end)
|
||||
void BrushTool::draw_line(Gfx::Bitmap& bitmap, Gfx::Color const& color, Gfx::IntPoint const& start, Gfx::IntPoint const& end)
|
||||
{
|
||||
int length_x = end.x() - start.x();
|
||||
int length_y = end.y() - start.y();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue