1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:27:35 +00:00

PixelPaint: Draw the current editor selection as marching ants

This patch moves the marching ants painting code to Selection and
unifies the timer mechanism so that all marching ants are synchronized
which looks neat. :^)
This commit is contained in:
Andreas Kling 2021-06-14 17:45:59 +02:00
parent 1b897ec561
commit 4cecd79000
5 changed files with 51 additions and 46 deletions

View file

@ -20,6 +20,7 @@ namespace PixelPaint {
ImageEditor::ImageEditor()
: m_undo_stack(make<GUI::UndoStack>())
, m_selection(*this)
{
set_focus_policy(GUI::FocusPolicy::StrongFocus);
}