mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
The Lasso, Polygonal Lasso and Magnetic Lasso showed only their icon, with the icon box's empty top-left corner on the pointer, so the outline started at a blank spot beside the lasso. They now show the solid arrow with its tip on the pointer and the tool's icon below right of it, as the reference application does and as the Paint Bucket and Ruler pointers already do. PaintedCursor::PointerTool gains an optional badge, drawn at the icon's lower right, so the add / subtract / intersect mark stays; pointer_tool_badged builds it. pointer_tool keeps its signature. Tests: the three lassos show the arrow with their icon and the operation's badge (fails on next: the lasso returned PaintedCursor::Tool); a badged arrow pointer keeps ink on its hotspot at 1x, 1.25x and 2x with the badge at the icon's lower right. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>