diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 13:08:32 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 13:08:32 +0100 |
commit | 9b87843af169b08f1b852da96f696004866783fe (patch) | |
tree | c5a7267ff44cc6a45ec39784e8ce34ea9774a96b /Applications/PaintBrush | |
parent | 20cfd2a6bff8c469970651dd73ffee60ab0e5176 (diff) | |
download | serenity-9b87843af169b08f1b852da96f696004866783fe.zip |
LibGfx: Unpublish Gfx::Point from global namespace
Diffstat (limited to 'Applications/PaintBrush')
-rw-r--r-- | Applications/PaintBrush/BucketTool.cpp | 2 | ||||
-rw-r--r-- | Applications/PaintBrush/LineTool.cpp | 2 | ||||
-rw-r--r-- | Applications/PaintBrush/PenTool.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Applications/PaintBrush/BucketTool.cpp b/Applications/PaintBrush/BucketTool.cpp index 38ca1ad79c..a227255979 100644 --- a/Applications/PaintBrush/BucketTool.cpp +++ b/Applications/PaintBrush/BucketTool.cpp @@ -47,7 +47,7 @@ static void flood_fill(Gfx::Bitmap& bitmap, const Gfx::Point& start_position, Co if (target_color == fill_color) return; - Queue<Point> queue; + Queue<Gfx::Point> queue; queue.enqueue(start_position); while (!queue.is_empty()) { auto position = queue.dequeue(); diff --git a/Applications/PaintBrush/LineTool.cpp b/Applications/PaintBrush/LineTool.cpp index 9f1bfef49b..f32af8fec0 100644 --- a/Applications/PaintBrush/LineTool.cpp +++ b/Applications/PaintBrush/LineTool.cpp @@ -31,7 +31,7 @@ #include <LibGUI/GPainter.h> #include <LibM/math.h> -Point constrain_line_angle(const Gfx::Point& start_pos, const Gfx::Point& end_pos, float angle_increment) +static Gfx::Point constrain_line_angle(const Gfx::Point& start_pos, const Gfx::Point& end_pos, float angle_increment) { float current_angle = atan2(end_pos.y() - start_pos.y(), end_pos.x() - start_pos.x()) + M_PI * 2.; diff --git a/Applications/PaintBrush/PenTool.cpp b/Applications/PaintBrush/PenTool.cpp index 9dcb7114c4..1ba2a01bb1 100644 --- a/Applications/PaintBrush/PenTool.cpp +++ b/Applications/PaintBrush/PenTool.cpp @@ -63,7 +63,7 @@ void PenTool::on_mousemove(GUI::MouseEvent& event) if (event.buttons() & GUI::MouseButton::Left || event.buttons() & GUI::MouseButton::Right) { GUI::Painter painter(m_widget->bitmap()); - if (m_last_drawing_event_position != Point(-1, -1)) + if (m_last_drawing_event_position != Gfx::Point(-1, -1)) painter.draw_line(m_last_drawing_event_position, event.position(), m_widget->color_for(event), m_thickness); else painter.draw_line(event.position(), event.position(), m_widget->color_for(event), m_thickness); |