1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +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:
Tim Ledbetter 2023-02-23 18:44:16 +00:00 committed by Jelle Raaijmakers
parent 8fa6a85100
commit 8ffe91c2f7

View file

@ -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,