浏览代码

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 年之前
父节点
当前提交
8ffe91c2f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,