mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +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
|
@ -40,7 +40,7 @@ void SprayTool::paint_it()
|
|||
if (!layer)
|
||||
return;
|
||||
|
||||
auto& bitmap = layer->content_bitmap();
|
||||
auto& bitmap = layer->currently_edited_bitmap();
|
||||
GUI::Painter painter(bitmap);
|
||||
VERIFY(bitmap.bpp() == 32);
|
||||
const double minimal_radius = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue