mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-03 20:15:53 +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:
committed by
Linus Groh
parent
a6716e694d
commit
2f6c71c829
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user