mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +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
|
@ -14,7 +14,7 @@
|
|||
|
||||
namespace PixelPaint {
|
||||
|
||||
static Gfx::IntPoint constrain_line_angle(const Gfx::IntPoint& start_pos, const Gfx::IntPoint& end_pos, float angle_increment)
|
||||
static Gfx::IntPoint constrain_line_angle(Gfx::IntPoint const& start_pos, Gfx::IntPoint const& end_pos, float angle_increment)
|
||||
{
|
||||
float current_angle = atan2f(end_pos.y() - start_pos.y(), end_pos.x() - start_pos.x()) + float { M_PI * 2 };
|
||||
|
||||
|
@ -76,7 +76,7 @@ void LineTool::on_mousemove(Layer&, GUI::MouseEvent& layer_event, GUI::MouseEven
|
|||
m_editor->update();
|
||||
}
|
||||
|
||||
void LineTool::on_second_paint(const Layer& layer, GUI::PaintEvent& event)
|
||||
void LineTool::on_second_paint(Layer const& layer, GUI::PaintEvent& event)
|
||||
{
|
||||
if (m_drawing_button == GUI::MouseButton::None)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue