summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/SprayTool.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-15 21:05:56 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-16 12:12:39 +0200
commitc6dd3377ee518704b94b6f6c0ad65ed64ddea409 (patch)
tree3926aa96a75f394b2a8fc0e3d37d6bbf284ec1b0 /Userland/Applications/PixelPaint/SprayTool.cpp
parent8763492e34e0dc4901f784289d751f18063bee71 (diff)
downloadserenity-c6dd3377ee518704b94b6f6c0ad65ed64ddea409.zip
PixelPaint: Make the main UI tabbed and allow multiple open images :^)
This patch adds a GUI::TabWidget to the main UI and allows having multiple images open at the same time. Some of the changes here are a bit hackish and mechanical and there's still code around that needs more work to fit better in the new world. One nice side-effect of this change is that ImageEditor now always has one Image associated with it, and it never changes.
Diffstat (limited to 'Userland/Applications/PixelPaint/SprayTool.cpp')
-rw-r--r--Userland/Applications/PixelPaint/SprayTool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/SprayTool.cpp b/Userland/Applications/PixelPaint/SprayTool.cpp
index 2b40a93f9a..28aa9d9c23 100644
--- a/Userland/Applications/PixelPaint/SprayTool.cpp
+++ b/Userland/Applications/PixelPaint/SprayTool.cpp
@@ -62,7 +62,7 @@ void SprayTool::paint_it()
bitmap.set_pixel<Gfx::StorageFormat::BGRA8888>(xpos, ypos, m_color);
}
- layer->did_modify_bitmap(*m_editor->image());
+ layer->did_modify_bitmap();
}
void SprayTool::on_mousedown(Layer&, GUI::MouseEvent& event, GUI::MouseEvent&)