diff options
author | Tobias Christiansen <tobyase@serenityos.org> | 2022-03-07 21:24:05 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-08 22:07:12 +0100 |
commit | 31a9196bfe94df31c902d9e0da9f2d8be0a20e91 (patch) | |
tree | 40faa88c1949f752fbe7c16aeb4684c331c6d830 /Userland/Applications/PixelPaint/Tools/PickerTool.cpp | |
parent | b6510f8e76f974d5d3df634b39b7f8d82416ede3 (diff) | |
download | serenity-31a9196bfe94df31c902d9e0da9f2d8be0a20e91.zip |
PixelPaint: Split bitmap() of Layer into {content, display}_bitmap
This is in preparation to support masking of Layers. We now distinguish
between the "display_bitmap" which will be the whole Layer with every
effect applied and the "content_bitmap" which contains the actual
unmodified pixels in the Layer.
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/PickerTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/PickerTool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/PickerTool.cpp b/Userland/Applications/PixelPaint/Tools/PickerTool.cpp index 54fa83c2dd..08b4309e75 100644 --- a/Userland/Applications/PixelPaint/Tools/PickerTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/PickerTool.cpp @@ -24,7 +24,7 @@ void PickerTool::on_mousedown(Layer* layer, MouseEvent& event) } else { if (!layer || !layer->rect().contains(position)) return; - color = layer->bitmap().get_pixel(position); + color = layer->content_bitmap().get_pixel(position); } // We picked a transparent pixel, do nothing. |