mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
PixelPaint: Support using a bitmap as a tool's cursor
This commit is contained in:
parent
116bb4888f
commit
0f24678eaf
14 changed files with 16 additions and 14 deletions
|
@ -52,7 +52,7 @@ void CloneTool::draw_line(Gfx::Bitmap& bitmap, Gfx::Color const& color, Gfx::Int
|
|||
BrushTool::draw_line(bitmap, color, start, end);
|
||||
}
|
||||
|
||||
Gfx::StandardCursor CloneTool::cursor()
|
||||
Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> CloneTool::cursor()
|
||||
{
|
||||
if (m_is_selecting_location)
|
||||
return Gfx::StandardCursor::Eyedropper;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue