summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-11-27 14:13:05 +0000
committerLinus Groh <mail@linusgroh.de>2022-11-27 20:35:22 +0100
commitfccda26ef9997f8401b9c4d6efe0f2d3f1c03781 (patch)
tree72df5004710cf4f674fa9c8626e1ddf24c737052
parent0482190bc858011e0e8358c6e6d48bf3d81214d6 (diff)
downloadserenity-fccda26ef9997f8401b9c4d6efe0f2d3f1c03781.zip
PixelPaint: Don't scale preview thickness for polygonal select tool
This is consistent with other editors and makes it a little easier to precisely select things when zoomed in.
-rw-r--r--Userland/Applications/PixelPaint/Tools/PolygonalSelectTool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/PolygonalSelectTool.cpp b/Userland/Applications/PixelPaint/Tools/PolygonalSelectTool.cpp
index 73efc60730..919110793c 100644
--- a/Userland/Applications/PixelPaint/Tools/PolygonalSelectTool.cpp
+++ b/Userland/Applications/PixelPaint/Tools/PolygonalSelectTool.cpp
@@ -142,12 +142,12 @@ void PolygonalSelectTool::on_second_paint(Layer const* layer, GUI::PaintEvent& e
for (size_t i = 0; i < m_polygon_points.size() - 1; i++) {
auto preview_start = editor_stroke_position(m_polygon_points.at(i), 1);
auto preview_end = editor_stroke_position(m_polygon_points.at(i + 1), 1);
- painter.draw_line(preview_start, preview_end, Color::Black, AK::max(m_editor->scale(), 1));
+ painter.draw_line(preview_start, preview_end, Color::Black, 1);
}
auto last_line_start = editor_stroke_position(m_polygon_points.at(m_polygon_points.size() - 1), 1);
auto last_line_stop = editor_stroke_position(m_last_selecting_cursor_position, 1);
- painter.draw_line(last_line_start, last_line_stop, Color::Black, AK::max(m_editor->scale(), 1));
+ painter.draw_line(last_line_start, last_line_stop, Color::Black, 1);
}
bool PolygonalSelectTool::on_keydown(GUI::KeyEvent const& key_event)