mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
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.
This commit is contained in:
parent
8fa6a85100
commit
8ffe91c2f7
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue