Pārlūkot izejas kodu

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.
Tim Ledbetter 2 gadi atpakaļ
vecāks
revīzija
8ffe91c2f7

+ 1 - 1
Userland/Applications/PixelPaint/Tools/CloneTool.cpp

@@ -176,7 +176,7 @@ Optional<Gfx::IntRect> CloneTool::sample_marker_rect()
     if (!m_sample_location.has_value())
     if (!m_sample_location.has_value())
         return {};
         return {};
 
 
-    auto offset = AK::max(2, size() / 2);
+    auto offset = AK::max(2, size());
     Gfx::IntRect content_rect = {
     Gfx::IntRect content_rect = {
         m_sample_location.value().x() - offset,
         m_sample_location.value().x() - offset,
         m_sample_location.value().y() - offset,
         m_sample_location.value().y() - offset,