Sfoglia il codice sorgente

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 anni fa
parent
commit
8ffe91c2f7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Userland/Applications/PixelPaint/Tools/CloneTool.cpp

+ 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())
         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,