mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:38:13 +00:00
PixelPaint: Draw the lasso tool preview path with two colors
This stops the preview path disappearing when entering a dark area of the image.
This commit is contained in:
parent
a6716e694d
commit
2f6c71c829
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ void LassoSelectTool::on_second_paint(Layer const* layer, GUI::PaintEvent& event
|
|||
painter.add_clip_rect(event.rect());
|
||||
if (layer)
|
||||
painter.translate(editor_layer_location(*layer));
|
||||
painter.stroke_path(m_preview_path, Gfx::Color::Black, 1);
|
||||
// FIXME: Find a way to draw this in a single call
|
||||
painter.stroke_path(m_preview_path, Gfx::Color::Black, 3);
|
||||
painter.stroke_path(m_preview_path, Gfx::Color::White, 1);
|
||||
}
|
||||
|
||||
bool LassoSelectTool::on_keydown(GUI::KeyEvent& key_event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue