From 8ffe91c2f7bdeecd77be7b450c01d7cbfe535946 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Thu, 23 Feb 2023 18:44:16 +0000 Subject: [PATCH] PixelPaint: Make the clone tool brush size consistent with other tools Other brush tools treat the brush size as a radius, not diameter. The clone tool now does the same. --- Userland/Applications/PixelPaint/Tools/CloneTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/PixelPaint/Tools/CloneTool.cpp b/Userland/Applications/PixelPaint/Tools/CloneTool.cpp index 2e823a1479..d7a7e8f71e 100644 --- a/Userland/Applications/PixelPaint/Tools/CloneTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/CloneTool.cpp @@ -176,7 +176,7 @@ Optional CloneTool::sample_marker_rect() if (!m_sample_location.has_value()) return {}; - auto offset = AK::max(2, size() / 2); + auto offset = AK::max(2, size()); Gfx::IntRect content_rect = { m_sample_location.value().x() - offset, m_sample_location.value().y() - offset,