mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
PixelPaint: Use the currently_edited_bitmap in the Tools
This way, you can actually edit the mask of a Layer!
This commit is contained in:
parent
96829565d8
commit
f972f8e7a8
7 changed files with 11 additions and 11 deletions
|
@ -24,7 +24,7 @@ void PickerTool::on_mousedown(Layer* layer, MouseEvent& event)
|
|||
} else {
|
||||
if (!layer || !layer->rect().contains(position))
|
||||
return;
|
||||
color = layer->content_bitmap().get_pixel(position);
|
||||
color = layer->currently_edited_bitmap().get_pixel(position);
|
||||
}
|
||||
|
||||
// We picked a transparent pixel, do nothing.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue