mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +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:
committed by
Jelle Raaijmakers
parent
8fa6a85100
commit
8ffe91c2f7
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user