diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-06 20:35:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-07 13:01:20 +0200 |
commit | f7053059c96d4a84c237b4395fe0a0ba4f3dbafc (patch) | |
tree | a5e80c9d9ff87446ab906e8aedb591d01e53ab75 /Userland/Applications/PixelPaint/ImageEditor.h | |
parent | b7e551b164ffb4e1de71fb7fe3ca99b6364c728d (diff) | |
download | serenity-f7053059c96d4a84c237b4395fe0a0ba4f3dbafc.zip |
PixelPaint: Allow partial invalidation of Layer and Image
Let's give ourselves the tools needed to update less than the entire
image every time we paint.
This patch adds plumbing so that Layer invalidations have a modified
rect that gets passed on to Image, and then on to ImageEditor.
Diffstat (limited to 'Userland/Applications/PixelPaint/ImageEditor.h')
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.h b/Userland/Applications/PixelPaint/ImageEditor.h index 88803ce1ef..28dcd15747 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.h +++ b/Userland/Applications/PixelPaint/ImageEditor.h @@ -87,7 +87,7 @@ private: virtual void context_menu_event(GUI::ContextMenuEvent&) override; virtual void resize_event(GUI::ResizeEvent&) override; - virtual void image_did_change() override; + virtual void image_did_change(Gfx::IntRect const&) override; virtual void image_select_layer(Layer*) override; virtual void image_did_change_title(String const&) override; |