1
Fork 0
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:
Tim Ledbetter 2023-01-05 20:39:50 +00:00 committed by Linus Groh
parent a6716e694d
commit 2f6c71c829

View file

@ -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)